I want to pass the values to roles from the input which im getting from vars_prompt
.
Kindly advise is it possible or not.
-name: Topic creation
hosts: all
vars_prompt:
- name: environment
prompt: "Enter the environment"
private: no
roles:
- "{{ environmet }}"
When i run the playbook getting an error.
Error! environment is undefined
Kindly advise how to pass the value to roles.
Want to pass the values to roles.