ansible --version
ansible 1.9.1
configured module search path = None
I’ve started 2 EC2 instances with Ansible, which is working fine. I can also see their tag in the cache file:
$ cat ~/.ansible/tmp/ansible-ec2.cache
…
“tag_class_dev_nat”: [
“52.28.23.161”,
“52.28.92.82”
],
…
Now when I try to run a playbook with “- hosts: tag_class_dev_nat”, no matching hosts can be found:
$ ansible-playbook playbooks/1_nat/1_nat-install.yml -i env/dev/inventory
PLAY [tag_class_dev_nat] ******************************************************
skipping: no hosts matched
PLAY RECAP ********************************************************************
Any ideas why and how to fix this? I’m not even sure how I can debug this…
Thanks a lot,
Philipp