*TL;DR: *When I create a instance the *ec2_* *variables are undefined.
Hello, I'm using ansible to create instances and using the *ec2_tag_Name* to set up the machine's hostname. The problem is, on the first run the playbook crashes saying that the '*ec2_tag_Name*' variable is undefinded, which is odd, since it should be automagicly defined by the *ec2.py* script. I've tried to run [$ ./ec2.py --refresh-cache]after the machine's creation but with no luck. My current workaround is to simply run the playbook twice, the variable is defined on the second run. Here <https://gist.github.com/mateusduboli/ca9ebaf6637ded97b46c> is a example playbook with this behaviour. Thank you! -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/962ff032-33d1-42e6-8253-d074d3cf76bf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
