evolinux-users: fix secondary groups

With ANsible 2.2 the list of groups must be comma-separated
This commit is contained in:
Jérémy Lecour 2018-05-02 17:13:03 +02:00 committed by Jérémy Lecour
parent c87e3ee576
commit 08d5ca5696
2 changed files with 8 additions and 3 deletions

View file

@ -15,6 +15,7 @@ The **patch** part changes incrementally at each release.
### Changed
### Fixed
* evolinux-users: secondary groups are comma-separated
### Security

View file

@ -87,14 +87,18 @@
with_items: "{{ user.groups }}"
loop_control:
loop_var: group
when: user.groups is defined
when:
- user.groups is defined
- user.groups != []
- name: "Unix user '{{ user.name }}' belongs to secondary groups"
user:
name: '{{ user.name }}'
groups: "{{ user.groups }}"
groups: "{{ user.groups | join(',') }}"
append: yes
when: user.groups is defined
when:
- user.groups is defined
- user.groups != []
# Permissions on home directory