ansible - 1.9.3
Dynamic inventory is used. bootstrapping an EC2 instance and adding the
instance to host using add-host, but it skips the plays for the newly
created hosts. But when running the play next time, it finds the host and
starts executing. here is the snippet,
hosts: localhost
tasks:
- name: something
ec2: this module will create instances
- name: adding hosts
add host: name=(name of the new instance)
hosts: new host
tasks:
- something
the above is just an example .This is the scenario.
--
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/704d1e19-909f-4578-951b-f0804eb029e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.