Hello Soniya, This is the output I have and for what I can see none of my adhoc commands are working.
Servers ubuntu 14.04 ansible 2.3.1.0 python version = 2.7.6 Thanks! This is the output I have Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/__init__.pyc META: ran handlers Using module file /usr/lib/python2.7/dist-packages/ansible/modules/system/user.py <172.22.15.3> ESTABLISH LOCAL CONNECTION FOR USER: root <172.22.15.3> EXEC /bin/sh -c 'echo ~ && sleep 0' Using module file /usr/lib/python2.7/dist-packages/ansible/modules/system/user.py <172.22.14.3> ESTABLISH LOCAL CONNECTION FOR USER: root <172.22.14.3> EXEC /bin/sh -c 'echo ~ && sleep 0' <172.22.14.3> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/juraj/.ansible/tmp/ansible-tmp-1503561664.69-1922608506894 `" && echo ansible-tmp-1503561664.69-1922608506894="` echo /home/juraj/.ansible/tmp/ansible-tmp-1503561664.69-1922608506894 `" ) && sleep 0' <172.22.15.3> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/juraj/.ansible/tmp/ansible-tmp-1503561664.68-54531949999364 `" && echo ansible-tmp-1503561664.68-54531949999364="` echo /home/juraj/.ansible/tmp/ansible-tmp-1503561664.68-54531949999364 `" ) && sleep 0' <172.22.14.3> PUT /tmp/tmpqpuHN1 TO /home/juraj/.ansible/tmp/ansible-tmp-1503561664.69-1922608506894/user.py <172.22.14.3> EXEC /bin/sh -c 'chmod u+x /home/juraj/.ansible/tmp/ansible-tmp-1503561664.69-1922608506894/ /home/juraj/.ansible/tmp/ansible-tmp-1503561664.69-1922608506894/user.py && sleep 0' <172.22.15.3> PUT /tmp/tmpQyAYTx TO /home/juraj/.ansible/tmp/ansible-tmp-1503561664.68-54531949999364/user.py <172.22.15.3> EXEC /bin/sh -c 'chmod u+x /home/juraj/.ansible/tmp/ansible-tmp-1503561664.68-54531949999364/ /home/juraj/.ansible/tmp/ansible-tmp-1503561664.68-54531949999364/user.py && sleep 0' <172.22.14.3> EXEC /bin/sh -c '/usr/bin/python /home/juraj/.ansible/tmp/ansible-tmp-1503561664.69-1922608506894/user.py; rm -rf "/home/juraj/.ansible/tmp/ansible-tmp-1503561664.69-1922608506894/" > /dev/null 2>&1 && sleep 0' <172.22.15.3> EXEC /bin/sh -c '/usr/bin/python /home/juraj/.ansible/tmp/ansible-tmp-1503561664.68-54531949999364/user.py; rm -rf "/home/juraj/.ansible/tmp/ansible-tmp-1503561664.68-54531949999364/" > /dev/null 2>&1 && sleep 0' Ubu1 | SUCCESS => { "append": false, "changed": false, "comment": "", "group": 1001, "home": "/home/********", "invocation": { "module_args": { "append": false, "comment": null, "createhome": true, "expires": null, "force": false, "generate_ssh_key": null, "group": null, "groups": null, "home": null, "login_class": null, "move_home": false, "name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "non_unique": false, "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "remove": false, "seuser": null, "shell": null, "skeleton": null, "ssh_key_bits": 0, "ssh_key_comment": "ansible-generated on ubuntu", "ssh_key_file": null, "ssh_key_passphrase": null, "ssh_key_type": "rsa", "state": "present", "system": false, "uid": null, "update_password": "always" } }, "move_home": false, "name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "password": "NOT_LOGGING_PASSWORD", "shell": "/bin/bash", "state": "present", "uid": 1001 } Ubu2 | SUCCESS => { "append": false, "changed": false, "comment": "", "group": 1001, "home": "/home/********", "invocation": { "module_args": { "append": false, "comment": null, "createhome": true, "expires": null, "force": false, "generate_ssh_key": null, "group": null, "groups": null, "home": null, "login_class": null, "move_home": false, "name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "non_unique": false, "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "remove": false, "seuser": null, "shell": null, "skeleton": null, "ssh_key_bits": 0, "ssh_key_comment": "ansible-generated on ubuntu", "ssh_key_file": null, "ssh_key_passphrase": null, "ssh_key_type": "rsa", "state": "present", "system": false, "uid": null, "update_password": "always" } }, "move_home": false, "name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "password": "NOT_LOGGING_PASSWORD", "shell": "/bin/bash", "state": "present", "uid": 1001 } On Thursday, August 24, 2017 at 12:09:55 AM UTC-3, Tcpip wrote: > > Hi all > > I want to add users via adhoc commands > > ansible all -m user -a "name=test password=test" -s -K > > but is not working ,please help. > > thanks. > -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ccd475ca-7a68-4a26-971d-96cf994089b1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.