Skip to content

Instantly share code, notes, and snippets.

Created Sep 12, 2015
What would you like to do?
$ ansible-playbook -i hosts playbook.yml

PLAY [test-servers] *********************************************************** 

GATHERING FACTS *************************************************************** 
ok: [172.x.y.1]

TASK: [example executed by root privilege with sudo] ************************** 
failed: [172.x.y.1] => {"failed": true, "parsed": false}
Sorry, user mazgi is not allowed to execute '/bin/sh -c echo BECOME-SUCCESS-pjsgloezpbixzbjkuollcccdddwkkrej; LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /home/mazgi/.ansible/tmp/ansible-tmp-1442018138.66-14634052319091/command; rm -rf /home/mazgi/.ansible/tmp/ansible-tmp-1442018138.66-14634052319091/ >/dev/null 2>&1' as root on xxx.
OpenSSH_6.9p1-hpn14v5, OpenSSL 1.0.1p 9 Jul 2015
debug1: Reading configuration data /home/mazgi/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: auto-mux: Trying existing master
debug1: mux_client_request_session: master session id: 2
Shared connection to 172.x.y.1 closed.

FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/home/mazgi/playbook.retry

172.x.y.1                  : ok=1    changed=0    unreachable=0    failed=1   
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment