Timeline for How can I put some set of machines to a group in an ansible inventory dynamically using the add_host ansible module?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 16 at 8:44 | comment | added | Kavisha Abeynayaka | Can I run the necessary steps to clone the a vm after updating the inventory like above in the same playbook | |
Jan 10 at 15:34 | comment | added | Vladimir Botka | I added an example of how to update the inventory file. | |
Jan 10 at 15:33 | history | edited | Vladimir Botka | CC BY-SA 4.0 |
Add example.
|
Jan 10 at 14:54 | comment | added | Vladimir Botka | The module add_host does not change the inventory file. The module will "Add a host (and alternatively a group) to the ansible-playbook in-memory inventory". The hosts are added to the inventory "for use in later plays of the same playbook". These hosts and the groups are not in the inventory anymore after the playbook terminates. | |
Jan 10 at 14:08 | comment | added | Kavisha Abeynayaka | it gives me the same output but still no hosts added to the cloned_group in the inventory .what does this output indicates ? | |
Jan 10 at 12:22 | history | edited | Vladimir Botka | CC BY-SA 4.0 |
added 346 characters in body
|
Jan 10 at 12:17 | history | answered | Vladimir Botka | CC BY-SA 4.0 |