Hi All,
Trying to do something like:
-
vars_prompt:
-
name: server
prompt: “Hostname of the server”
private: no -
hosts: “{{ server }}”
tasks:
debug: msg=“Host is {{ inventory_hostname }}”
The host that I run the playbook against is dynamic, so I want to be able to either specify it via “-e” or prompt for it. Is this possible?
Error message is:
ERROR: hosts declaration is required
Thanks.
GS