I’m attempting to provision my staging server with ansible-playbook server.yml -e env=staging
but I keep getting this message.
TASK [common : Retrieve SSH client IP] **************************************************************************************
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/network/ipify_facts.py
<remote_ip> ESTABLISH LOCAL CONNECTION FOR USER: <local_username>
<remote_ip> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
System info:
Ansible 2.3.0.0; Darwin
Trellis at "Ansible 2.3 compatibility"
---------------------------------------------------
No valid or no response from url https://api.ipify.org within 10 seconds
(timeout)
fatal: [<remote_ip>]: FAILED! => {
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"api_url": "https://api.ipify.org",
"timeout": 10
}
}
}
I’ve logged into the server via SSH and ran curl https://api.ipify.org
, which indeed returns my IP address.