evolinux-users: fix secondary groups
With ANsible 2.2 the list of groups must be comma-separated
This commit is contained in:
parent
c87e3ee576
commit
08d5ca5696
|
@ -15,6 +15,7 @@ The **patch** part changes incrementally at each release.
|
|||
### Changed
|
||||
|
||||
### Fixed
|
||||
* evolinux-users: secondary groups are comma-separated
|
||||
|
||||
### Security
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue