I know you can declare variables as part of a role:
└── wordpress-nginx ├── LICENSE.md ├── README.md ├── group_vars │ └── all ├── hosts.example ├── roles │ ├── common │ │ ├── files │ │ │ ├── RPM-GPG-KEY-EPEL-6 │ │ │ ├── epel.repo │ │ │ └── iptables-save │ │ ├── handlers │ │ │ └── main.yml │ │ └── vars │ │ └── main.yml
but can you specify vars_prompts under a role as well? I tried both vars_prompt/main.yml and prompts/main.yml but my ansible-playbook prompts me for neither. Running with Ansible 1.7.2.
I have many playbooks that all share the same role. The prompts are really specific to the role, not an individual playbook.