remove default group

This commit is contained in:
Patrick Neff 2022-01-23 02:34:05 +01:00
parent 738674f20d
commit 1e619f21ac
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
ansible.builtin.user:
name: "{{ user.username }}"
state: "{{ user.state | default('present') }}"
group: "{{ user.group | default(user.username) }}"
group: "{{ user.group | default(omit) }}"
groups: "{{ user.groups | default(omit) | join(',') }}"
comment: "{{ user.comment | default(omit) }}"
shell: "{{ user.shell | default(omit) }}"