Hello All,
I am having an issue when I set a fact, I am not able to see that fact after I have another host block in my playbook. I get the error variable is undefined. The issue occurs in my - name: Launch instance
Hello All,
I am having an issue when I set a fact, I am not able to see that fact after I have another host block in my playbook. I get the error variable is undefined. The issue occurs in my - name: Launch instance
Facts are set per host. You mix all with localhost.
What are you trying to do?
Thank you for the reply… I thought if I set host all at the top and then set the facts for host all it would work. I guess I would have to have localhost in my inventory file correct?
I am just trying to launch a ec2 instance in my playbook
The 'implicit localhost' is not part of ALL
The 'implicit localhost' is not part of ALL:
https://docs.ansible.com/ansible/latest/inventory/implicit_localhost.html
Documentation gold!
Thanks!
V/r,
James Cassell
Thank you for all your assistance!