Add system to groups

This commit is contained in:
Patrick Neff 2022-07-08 22:04:57 +02:00
parent f79de0d750
commit fcecfe709d
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
ansible.builtin.group:
name: "{{ user.group | default(user.username) }}"
gid: "{{ user.gid | default(omit) }}"
system: "{{ user.system | default(omit) }}"
state: present
when:
- user.state | default('present') == 'present'

View File

@ -9,7 +9,7 @@
comment: "{{ user.comment | default(omit) }}"
shell: "{{ user.shell | default(omit) }}"
password: "{{ user.password | default(omit) }}"
system: "{{ user.system | default(omit) }}"
system: "{{ user.system | default(false) }}"
uid: "{{ user.uid | default(omit) }}"
gid: "{{ user.gid | default(omit) }}"
update_password: on_create