|
|
|
|
|
|
|
|
|
|
|
|
|
|
users_sudoer-{{ name }}: |
|
|
users_sudoer-{{ name }}: |
|
|
file.managed: |
|
|
file.managed: |
|
|
|
|
|
- replace: False |
|
|
- name: {{ users.sudoers_dir }}/{{ name }} |
|
|
- name: {{ users.sudoers_dir }}/{{ name }} |
|
|
- user: root |
|
|
- user: root |
|
|
- group: {{ users.root_group }} |
|
|
- group: {{ users.root_group }} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
users_{{ users.sudoers_dir }}/{{ name }}: |
|
|
users_{{ users.sudoers_dir }}/{{ name }}: |
|
|
file.managed: |
|
|
file.managed: |
|
|
|
|
|
- replace: True |
|
|
- name: {{ users.sudoers_dir }}/{{ name }} |
|
|
- name: {{ users.sudoers_dir }}/{{ name }} |
|
|
- contents: | |
|
|
- contents: | |
|
|
{%- if 'sudo_defaults' in user %} |
|
|
{%- if 'sudo_defaults' in user %} |