append user groups

Otherwise running just the user tasks will overwrite the group list,
removing the user from all other groups.
This commit is contained in:
Pig Monkey 2018-03-26 11:25:25 -07:00
parent 8d83c481d9
commit 8b4df2076b

View file

@ -5,7 +5,7 @@
- user
- name: Create user and assign to group
user: name={{ user.name }} group={{ user.group }} password={{ user_password|password_hash('sha512') }} shell={{ user.shell }} update_password=on_create uid={{ user.uid }} groups=uucp
user: name={{ user.name }} group={{ user.group }} password={{ user_password|password_hash('sha512') }} shell={{ user.shell }} update_password=on_create uid={{ user.uid }} groups=uucp append=yes
tags:
- user