$ 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
Created
September 12, 2015 00:38
-
-
Save mazgi/e058b0f0841d0748b0c1 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment