Hi, The unreachable=0 is resolved, but now the ansible script is breaking in main.yml file:
========================
fatal: [149.165.170.53]: FAILED! => {
"failed": true,
"msg": "the field 'args' has an invalid value, which appears to include a
variable that is undefined. The error was: 'dict object' has no attribute
'ansible_default_ipv4'\n\nThe error appears to have been in
'/home/prashant/Desktop/airavata/dev-tools/ansible/roles/database/tasks/main.yml':
line 120, column 3, but may\nbe elsewhere in the file depending on the exact
syntax problem.\n\nThe offending line appears to be:\n\n\n- name: give access
to {{ db_user }} from remote\n ^ here\nWe could be wrong, but this one looks
like it might be an issue with\nmissing quotes. Always quote template
expression brackets when they\nstart a value. For instance:\n\n
with_items:\n - {{ foo }}\n\nShould be written as:\n\n with_items:\n
- \"{{ foo }}\"\n"
}
to retry, use: --limit
@/home/prashant/Desktop/airavata/dev-tools/ansible/database.retry
PLAY RECAP *********************************************************************
149.165.170.53 : ok=23 changed=15 unreachable=0 failed=1
(ENV) prashant@prashant-VirtualBox:~/Desktop/airavata/dev-tools/ansible$
=========================
Also attaching the main.yml file for reference.
Thanks.
Prashant
________________________________________
From: Modak, Prashant Kumar
Sent: Friday, October 19, 2018 9:14 AM
To: [email protected]
Subject: issue facing with ansible-playbook, [UNREACHABLE]
Hi,
I am facing an issue while i am trying to run the following command:
ansible-playbook -i inventories/standalone database.yml
(ENV) [js-170-53] xseduser
~/Desktop/airavata/dev-tools/ansible-->ansible-playbook -i
inventories/standalone database.yml
PLAY [api-orch] ****************************************************************
TASK [setup] *******************************************************************
fatal: [172.19.166.12]: UNREACHABLE! => {"changed": false, "msg": "Failed to
connect to the host via ssh: Permission denied
(publickey,gssapi-keyex,gssapi-with-mic,password).\r\n", "unreachable": true}
to retry, use: --limit
@/home/xseduser/Desktop/airavata/dev-tools/ansible/database.retry
PLAY RECAP *********************************************************************
172.19.166.12 : ok=0 changed=0 unreachable=1 failed=0
Please let me know if I am doing any wrong configuration setting or missing
some configuration.
Thanks.
Prashant
main.yml
Description: main.yml
