[ansible-project] Re: referencing the instance id of an EC2 resource just created

2017-06-21 Thread Bill L.
Hmm. That seems rather complex. Do you happen to know what the prescribed method of doing this is? Does Ansible recommend using add_hosts http://docs.ansible.com/ansible/add_host_module.html> module? On Tuesday, June 20, 2017 at 8:21:59 PM UTC-5, Michael Bushey wrote: > > I don't think this wor

[ansible-project] Re: referencing the instance id of an EC2 resource just created

2017-06-20 Thread Michael Bushey
I don't think this works in Ansible. The ec2 functionality seems very marginal and defective. I split the playbooks into two parts. The first spins up the instance. Then I go to the aws console to assign the correct IAM role to the instance as I can't figure out how to do this in Ansible. Then