Hey Guys I am trying to run that playbook but for some reason it's not
running
root@ip-172-16-20-180:/var/lib/jenkins/jobs/build-cs-utils/workspace/playbooks#
ansible-playbook -i inventory/prod deploy_system_status.yml
Enter the version you want to deploy:
PLAY [Deploy to status servers]
**********************************************
GATHERING FACTS
***************************************************************
fatal: [prodstatus0] => SSH Error: Permission denied (publickey).
while connecting to 172.16.21.129:22
It is sometimes useful to re-run the command using -vvvv, which prints SSH
debug output to help diagnose the issue.
TASK: [nodejs_app | Put upstart script in place]
******************************
FATAL: no hosts matched or all hosts have already failed -- aborting
PLAY RECAP
********************************************************************
to retry, use: --limit @/root/deploy_system_status.retry
prodstatus0 : ok=0 changed=0 unreachable=1
failed=0
Here is also the command with -vvvv
root@ip-172-16-20-180:/var/lib/jenkins/jobs/build-cs-utils/workspace/playbooks#
ansible-playbook -i inventory/prod deploy_system_status.yml -vvvv
Enter the version you want to deploy:
PLAY [Deploy to status servers]
**********************************************
GATHERING FACTS
***************************************************************
<172.16.21.129> ESTABLISH CONNECTION FOR USER: ansible
<172.16.21.129> REMOTE_MODULE setup
<172.16.21.129> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o
ControlPersist=60s -o ControlPath="/root/.ansible/cp/ansible-ssh-%h-%p-%r"
-o IdentityFile="/root/credentials/ansible_id_rsa" -o
KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10
172.16.21.129 /bin/sh -c 'mkdir -p
$HOME/.ansible/tmp/ansible-tmp-1444673619.82-165283189134845 && echo
$HOME/.ansible/tmp/ansible-tmp-1444673619.82-165283189134845'
fatal: [prodstatus0] => SSH Error: Permission denied (publickey).
while connecting to 172.16.21.129:22
It is sometimes useful to re-run the command using -vvvv, which prints SSH
debug output to help diagnose the issue.
TASK: [nodejs_app | Put upstart script in place]
******************************
FATAL: no hosts matched or all hosts have already failed -- aborting
PLAY RECAP
********************************************************************
to retry, use: --limit @/root/deploy_system_status.retry
prodstatus0 : ok=0 changed=0 unreachable=1
failed=0
--
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/70da6c7c-c6a8-40bf-8077-c4e3cd3bdd90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.