When I run it in verbose, the message for that task is pretty much the same:
“msg”: “Status code was -1 and not [200]: Request failed: <urlopen error EOF occurred in violation of protocol (_ssl.c:590)>”,
“redirected”: false,
“status”: -1,
“url”: “https://site.domain.tld/rest/check/”
Here is the full verbosity output:
`
=> ansible-playbook --tags checkHealth ~/myplaybook.yml -vvv
ansible-playbook 2.5.4
config file = /Users/me/.ansible.cfg
configured module search path = [‘/Users/me/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]
ansible python module location = /usr/local/lib/python3.6/site-packages/ansible
executable location = /usr/local/bin/ansible-playbook
python version = 3.6.5 (default, Apr 25 2018, 14:26:36) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)]
Using /Users/me/.ansible.cfg as config file
Parsed /Users/me/ansible/inventory inventory source with ini plugin
PLAYBOOK: myplaybook.yml *******************************************************************************************************************************************************************************************************************************************************************************************
1 plays in /Users/me/myplaybook.yml
Read vars_file ‘…/Vault.yml’
Read vars_file ‘…/Vault.yml’
PLAY [check indexing status] ******************************************************************************************************************************************************************************************************************************************************************************
META: ran handlers
Read vars_file ‘…/Vault.yml’
TASK [Check for “Lucene” health] *******************************************************************************************************************************************************************************************************************************************************************************************
task path: /Users/me/myplaybook.yml:10
Using module file /usr/local/lib/python3.6/site-packages/ansible/modules/net_tools/basics/uri.py
ESTABLISH LOCAL CONNECTION FOR USER: me
EXEC /bin/sh -c ‘echo ~me2 && sleep 0’
EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /Users/me/.ansible/tmp/ansible-tmp-1528389571.6054752-184913372491664
” && echo ansible-tmp-1528389571.6054752-184913372491664=“echo /Users/me/.ansible/tmp/ansible-tmp-1528389571.6054752-184913372491664
” ) && sleep 0’
PUT /Users/me/.ansible/tmp/ansible-local-75437a7u_k2kd/tmphmuwa7sm TO /Users/eh3512/.ansible/tmp/ansible-tmp-1528389571.6054752-184913372491664/uri.py
EXEC /bin/sh -c ‘chmod u+x /Users/me/.ansible/tmp/ansible-tmp-1528389571.6054752-184913372491664/ /Users/me/.ansible/tmp/ansible-tmp-1528389571.6054752-184913372491664/uri.py && sleep 0’
EXEC /bin/sh -c ‘/usr/bin/python /Users/me/.ansible/tmp/ansible-tmp-1528389571.6054752-184913372491664/uri.py && sleep 0’
EXEC /bin/sh -c ‘rm -f -r /Users/me/.ansible/tmp/ansible-tmp-1528389571.6054752-184913372491664/ > /dev/null 2>&1 && sleep 0’
The full traceback is:
File “/var/folders/kz/j5vz888d39q0hsrd15ml4214by4qgx/T/ansible_Wlj9po/ansible_module_uri.py”, line 471, in main
uresp[‘location’] = absolute_location(url, uresp[‘location’])
fatal: [localhost]: FAILED! => {
“changed”: false,
“content”: “”,
“invocation”: {
“module_args”: {
“attributes”: null,
“backup”: null,
“body”: null,
“body_format”: “json”,
“client_cert”: null,
“client_key”: null,
“content”: null,
“creates”: null,
“delimiter”: null,
“dest”: null,
“directory_mode”: null,
“follow”: false,
“follow_redirects”: “safe”,
“force”: false,
“force_basic_auth”: true,
“group”: null,
“headers”: {
“Authorization”: “Basic YksdjhfksjdhfZSnJhT1l4TmUw”,
“Content-Type”: “application/json”
},
“http_agent”: “ansible-httpget”,
“method”: “GET”,
“mode”: null,
“owner”: null,
“password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“regexp”: null,
“register”: “results”,
“remote_src”: null,
“removes”: null,
“return_content”: true,
“selevel”: null,
“serole”: null,
“setype”: null,
“seuser”: null,
“src”: null,
“status_code”: [
“200”
],
“timeout”: 30,
“unsafe_writes”: null,
“url”: “https://site.domain.tld/rest/check/”,
“url_password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“url_username”: “ansible”,
“use_proxy”: true,
“user”: “ansible”,
“validate_certs”: false
}
},
“msg”: “Status code was -1 and not [200]: Request failed: <urlopen error EOF occurred in violation of protocol (_ssl.c:590)>”,
“redirected”: false,
“status”: -1,
“url”: “https://site.domain.tld/rest/check/”
}
to retry, use: --limit @/Users/me/myplaybook.retry
PLAY RECAP *****************************************************************************************************************************************************************************************************************************************************************************************************************
localhost : ok=0 changed=0 unreachable=0 failed=1
`