try another way

This commit is contained in:
Dryusdan 2024-02-16 15:21:23 +01:00
parent cb103c9090
commit e716b68e4c
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
user:
name: "{{ item.name }}"
shell: "{{ item.shell | default('/usr/sbin/nologin') }}"
groups: "{{ (item.secondary_groups | join(',')) | default('') }}"
groups: "{{ (item.secondary_groups | default('')) | join(',') }}"
comment: "{{ item.comment | default('') }}"
home: "{{ item.home }}"
generate_ssh_key: yes
@ -34,7 +34,7 @@
user:
name: "{{ item.name }}"
shell: "{{ item.shell | default('/usr/sbin/nologin') }}"
groups: "{{ (item.secondary_groups | join(',')) | default('') }}"
groups: "{{ (item.secondary_groups | default('')) | join(',') }}"
comment: "{{ item.comment | default('') }}"
uid: "{{ item.uid | default(omit) }}"
home: "{{ item.home }}"