I want to write a bootstrapper playbook for new machines in Ansible which will reconfigure the network settings. At the time of the first execution target machines will have DHCP-assigned address.
The user who is supposed to execute the playbook knows the assigned IP address of a new machine. I would like to prompt the user for is value.
vars_prompt
module allows getting input from the user, however it is defined under hosts
section effectively preventing host address as the required value.
Is it possible without using a wrapper script modifying inventory file?
dynamically_created_hosts
get's cleared at the end of the execution? In other words, isdynamically_created_hosts
persisted? – Autocrat