I’m falling at the first fence tying to get ansible working. I’ve described my issue in detail in this post on ServerFault, but I wondered if anyone here could see what’s wrong.
Short version: when I ask ansible to show me the list of selected targets with --list-hosts, it shows what I expect (i.e. my inventory file is OK), but if I try to run a play against that same inventory, it fails saying it’s missing target hosts.
If I give it a simple immediate command like ‘ping’, it attempts to run it correctly on the target, though it fails because the command I’m trying to run in my play is to install python2.7 on Ubuntu 16.04… However, that still implies that the inventory and targets are correct. The only difference therefore is the play itself, and I can’t see what’s up with that since its hosts property matches, adn it still fails even if I specify all
.
Where am I going wrong?