Here is my playbook,
My application is running on below Ips and I want to check the url status for all.
[webservers]But it's getting failed with below error.
ansible-playbook test.yml -u test --ask-pass SSH password: [WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details Please enter the hosts details: webservers Please enter the port: 8080 [WARNING]: Found variable using reserved name: port PLAY [webservers] ****************************************************************************> ******************************** TASK [Gathering Facts] ********************************************************************************************************** ok: [10.10.10.10] TASK [http://webservers:8080/test] ********************************************************************** [WARNING]: The value True (type bool) in a string field was converted to u'True' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change. fatal: [10.10.10.10]: FAILED! => {"changed": false, "content": "", "elapsed": 0, "failed_when_result": true, "msg": "Status code was -1 and not [200]: Request failed: <urlopen error [Errno -2] Name or service not known>", "redirected": false, "status": -1, "url": "http://webservers:8080/test"} PLAY RECAP ********************************************************************************************************************** 10.10.10.10 : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0Can someone please suggest on this?
--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d77b3789-c21e-4dbe-8780-01bb9aab1c8fn%40googlegroups.com.