fix mgrote_users "wantlist" #203

Merged
mg merged 10 commits from us into master 2024-10-08 17:02:29 +02:00
Showing only changes of commit fc8f1253a0 - Show all commits

View file

@ -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