I am trying to create a simple playbook and having issues understanding the key value I need. Currently my goal is to do this.
1.) Get a list of instances either by a tag or running.
2.) Register this list and gather the facts of the instances with the ec2_remote_facts module
3.) Create an ami of all instances it finds with that tag or running
4.) the name of the ami will need to be the private ip of instance.
Here Is my code so far, but can’t figure out the correct variables.
I apologize in advance if this not the correct place to ask this question.