todo
This commit is contained in:
parent
048aebf95f
commit
fc8f1253a0
1 changed files with 4 additions and 4 deletions
|
@ -11,7 +11,7 @@
|
||||||
state: present
|
state: present
|
||||||
loop: '{{ groups_as_list }}'
|
loop: '{{ groups_as_list }}'
|
||||||
when: groups_as_list is defined
|
when: groups_as_list is defined
|
||||||
# no_log: true # TODO
|
no_log: true
|
||||||
|
|
||||||
- name: Ensure users exist
|
- name: Ensure users exist
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
createhome: "{{ item.createhome | default('yes') }}"
|
createhome: "{{ item.createhome | default('yes') }}"
|
||||||
state: "{{ item.state | default('present') }}"
|
state: "{{ item.state | default('present') }}"
|
||||||
loop: '{{ users }}'
|
loop: '{{ users }}'
|
||||||
# no_log: true # TODO
|
no_log: true
|
||||||
|
|
||||||
- name: Ensure user ssh-keys exist
|
- name: Ensure user ssh-keys exist
|
||||||
ansible.posix.authorized_key:
|
ansible.posix.authorized_key:
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
state: present
|
state: present
|
||||||
when: item.public_ssh_key is defined
|
when: item.public_ssh_key is defined
|
||||||
loop: '{{ users }}'
|
loop: '{{ users }}'
|
||||||
# no_log: true # TODO
|
no_log: true
|
||||||
|
|
||||||
- name: Ensure users are added to sudoers
|
- name: Ensure users are added to sudoers
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
|
@ -44,4 +44,4 @@
|
||||||
validate: 'visudo -cf %s'
|
validate: 'visudo -cf %s'
|
||||||
when: item.allow_sudo|default(false) and item.allow_sudo is defined
|
when: item.allow_sudo|default(false) and item.allow_sudo is defined
|
||||||
loop: '{{ users }}'
|
loop: '{{ users }}'
|
||||||
# no_log: true # TODO
|
no_log: true
|
||||||
|
|
Loading…
Reference in a new issue