Re: [ansible-project] Removing a user from a group using Ansible and the USER module

2016-06-01 Thread Alan Harkleroad
Thank you very much. That worked. Now on to more complex tasks. Got to learn to crawl before you can walk. I used it from my test case to my live production and the expected result did what we wanted. On Wednesday, June 1, 2016 at 10:09:09 AM UTC-4, Kai Stian Olstad wrote: > > On 01.06.2016

Re: [ansible-project] Removing a user from a group using Ansible and the USER module

2016-06-01 Thread Kai Stian Olstad
On 01.06.2016 15:42, Alan Harkleroad wrote: --- - hosts: test sudo: yes tasks: - name: Create a test user for trials user: name=testuser1 group=some-group groups=wheel,cdrom,additional groups password=somehasedpassword shell=/bin/bash state=present append=yes

[ansible-project] Removing a user from a group using Ansible and the USER module

2016-06-01 Thread Alan Harkleroad
Good morning. I am trying to run a test case where I can edit a users groups using a playbook in Ansible on CENTOS 6.7 Ansible version 1.9.2 currently installed. After thorough research of other postes and the user module itself I dont see any ways to take a group out of a users profile only