Is there a possibility to prompt a variable again? Currently if you prompt a variable in the first play, you can’t prompt for the same variable in the second play. Here is my (example) playbook:
`
- name: setup ansible-ci agents
hosts: jenkins-agents
vars_prompt: - name: ansible_become_pass
prompt: “SUDO password for agents machine”
private: yes
roles:
-
agent
-
name: install ansible-ci server
hosts: jenkins-server
vars_prompt: -
name: ansible_become_pass
prompt: “SUDO password for server”
private: yes
roles:
- ansible-ci
`
I don’t know why, but I am just getting ask for the var of the first play and not a second time.