Hi,

Thx for you reply.
I'm gonna to test.

Matt

Le mardi 4 décembre 2018 10:31:50 UTC+1, Piotr Owcarz a écrit :
>
> Hi
>
> It's hard to get what your goal is... You mean something like this? 
>
> struct :
>  users:
>    - name: user1
>      uid: 2001
>      shell: /bin/sh
>      group: grp1   
>      groups: grp2
>      home: /home/user1
>      limits: 
>        - { type: soft, item: nofile, value:  65536}
>        - { type: soft, item: nofile, value:  65536}
>        - { type: hard, item: nofile, value:  65536}
>        - { type: soft, item: nproc, value:  16000}
>        - { type: hard, item: nproc, value:  16000}
>
>
> Piotr
>
> wt., 4 gru 2018 o 05:24 COUSSI Matthieu <[email protected] 
> <javascript:>> napisał(a):
>
>> Hi,
>>
>> I have a variable with this structure where i declare the users that i 
>> have to create.
>>
>> struct :
>>  users:
>>    - { name: user1,  uid: 2001,    shell: /bin/sh,    group: grp1,   
>> groups: grp2,    home: /home/user1 }
>>    - { name: user2,  uid: 2002,    shell: /bin/sh,    group: grp1,   
>> groups: grp2,    home: /home/user2 }
>>    - { name: user3,  uid: 2002,    shell: /bin/sh,    group: grp1,   
>> groups: grp2,    home: /home/user3 }
>>
>>    
>> For each user, i want to define the limits but i don't know how to 
>> declare this in the structure of my variable "struct".
>>
>>     - { type: soft, item: nofile, value:  65536}
>>     - { type: hard, item: nofile, value:  65536}
>>     - { type: soft, item: nproc, value:  16000}
>>     - { type: hard, item: nproc, value:  16000}
>>
>>
>> Thanks for your help,
>>
>> Matt
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/7c319635-d955-43db-b65b-e6000fc48e58%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/7c319635-d955-43db-b65b-e6000fc48e58%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5de2aa7f-49ba-4c74-9707-824363f7378d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to