So I tried doing this as described with includes – I spun up a new Amazon Linux instance and things seemed to be working however I have now run into another problem…
When it tries to ping using centos user, it fails with unreachable – good
When it tries to ping using user ec2-user it works as expected and succeeds
When it tries to ping using user root, I get:
TASK [try users] ****************************************************************************************************************************************************************************************
[WARNING]: Unhandled error in Python interpreter discovery for host 10.5.162.167: unexpected output from Python interpreter discovery
[WARNING]: sftp transfer mechanism failed on [10.5.162.167]. Use ANSIBLE_DEBUG=1 to see detailed information
[WARNING]: scp transfer mechanism failed on [10.5.162.167]. Use ANSIBLE_DEBUG=1 to see detailed information
[WARNING]: Platform unknown on host 10.5.162.167 is using the discovered Python interpreter at /usr/bin/python, but future installation of another Python interpreter could change this. See
https://docs.ansible.com/ansible/2.8/reference_appendices/interpreter_discovery.html for more information.
ok: [10.5.162.167]
which is bad… I try to connect using normal ssh root@10.5.162.167 and it fails… so I don’t see how the above is resulting in an OK
I have tried with -vvvv and I can’t see exactly what is causing it…. I haven’t tried using debug yet, but thought I would post to see if the basic errors above mean anything to anyone?
I will setting ANSIBLE_DEBUG=1 later today when I have more time again – I have googled selections of the above and haven’t found anything meaningful as of yet.
Thanks, as always for any advice.
Regards
Bill