I have one machine that every time I run Ansible it keeps updating the same 
user.

No other machine has the problem. Thought maybe it was the user ended up 
somehow in an inconsistent state.. Deleted the user, including it's home 
directory.
Did not help.. same is still happening.

ansible 1.6 (devel ae29e43f93) last updated 2014/04/19 17:36:26 (GMT -400)

This is the task
- name: Create user in FreeBSD systems
  user: home=/home/{{item.uname}} name={{item.uname}} shell={{item.shell}} 
state=present password={{item.passwd}} groups=wheel
  when: ansible_os_family == "FreeBSD"
  with_items: AdminUsers

This is the output from -vvv

TASK: [admin_users | Create user in FreeBSD systems] 
************************** 
<10.1.1.95> ESTABLISH CONNECTION FOR USER: root
<10.1.1.95> REMOTE_MODULE user home=/home/francisco name=francisco 
shell=/usr/local/bin/zsh state=present password=VALUE_HIDDEN groups=wheel
<10.1.1.95> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', 
'-o', 'ControlPersist=60s', '-o', 
'ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=2222', 
'-o', 'KbdInteractiveAuthentication=no', '-o', 
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', 
'-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10', '10.1.1.95', 
"/bin/sh -c 'mkdir -p 
$HOME/.ansible/tmp/ansible-tmp-1401002098.12-52400671984647 && echo 
$HOME/.ansible/tmp/ansible-tmp-1401002098.12-52400671984647'"]
<10.1.1.95> PUT /tmp/tmpchs1V7 TO 
/root/.ansible/tmp/ansible-tmp-1401002098.12-52400671984647/user
<10.1.1.95> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', 
'-o', 'ControlPersist=60s', '-o', 
'ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=2222', 
'-o', 'KbdInteractiveAuthentication=no', '-o', 
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', 
'-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10', '10.1.1.95', 
"/bin/sh -c '/usr/local/bin/python2.7 
/root/.ansible/tmp/ansible-tmp-1401002098.12-52400671984647/user; rm -rf 
/root/.ansible/tmp/ansible-tmp-1401002098.12-52400671984647/ >/dev/null 
2>&1'"]
changed: [pull.natserv.net] => (item={'passwd': 
'$6$rounds=100000$uXRZS5W3uZSr0E8i$14subthKb62fHlNq61.cjs1xvrcHX/9Whk4jxT.jBybZsGb3IQTLudQbmYnc192wok0HMVosWyZ3Szdkpmv0t.',
 
'uname': 'francisco', 'shell': '/usr/local/bin/zsh', 'francisco': None}) => 
{"append": false, "changed": true, "comment": "User &", "group": 1001, 
"groups": "wheel", "home": "/home/francisco", "item": {"francisco": null, 
"passwd": 
"$6$rounds=100000$uXRZS5W3uZSr0E8i$14subthKb62fHlNq61.cjs1xvrcHX/9Whk4jxT.jBybZsGb3IQTLudQbmYnc192wok0HMVosWyZ3Szdkpmv0t.",
 
"shell": "/usr/local/bin/zsh", "uname": "francisco"}, "move_home": false, 
"name": "francisco", "password": "NOT_LOGGING_PASSWORD", "shell": 
"/usr/local/bin/zsh", "state": "present", "uid": 1001}

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ae996310-e323-435f-8b9b-2cc65d2f3fd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to