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
|
### Changed
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
* evolinux-users: secondary groups are comma-separated
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
||||||
|
|
|
@ -87,14 +87,18 @@
|
||||||
with_items: "{{ user.groups }}"
|
with_items: "{{ user.groups }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: group
|
loop_var: group
|
||||||
when: user.groups is defined
|
when:
|
||||||
|
- user.groups is defined
|
||||||
|
- user.groups != []
|
||||||
|
|
||||||
- name: "Unix user '{{ user.name }}' belongs to secondary groups"
|
- name: "Unix user '{{ user.name }}' belongs to secondary groups"
|
||||||
user:
|
user:
|
||||||
name: '{{ user.name }}'
|
name: '{{ user.name }}'
|
||||||
groups: "{{ user.groups }}"
|
groups: "{{ user.groups | join(',') }}"
|
||||||
append: yes
|
append: yes
|
||||||
when: user.groups is defined
|
when:
|
||||||
|
- user.groups is defined
|
||||||
|
- user.groups != []
|
||||||
|
|
||||||
# Permissions on home directory
|
# Permissions on home directory
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue