andrewvaughan / ansible-role-prompt

Ansible plugin for messaging and prompting the user during a playbook.
MIT License
11 stars 2 forks source link

Add the role to every playbook (in config files) #80

Closed BarbzYHOOL closed 6 years ago

BarbzYHOOL commented 6 years ago

Is it possible to add the role to a configuration file (either for inventory or for all in /etc/) so that it's usable on every playbooks by default?

andrewvaughan commented 6 years ago

Hey @BarbzYHOOL, thanks for the request. I'm not certain I fully understand it, however. Can you provide an example of what you mean?

BarbzYHOOL commented 6 years ago

In ansible.cfg:

av.role-prompt: yes

And then on all playbooks I can forget about adding "role: ansible-role-prompt" before using the actual prompt

If not clear, tell me again

andrewvaughan commented 6 years ago

This is a feature you would need to request from the main Ansible repository.

BarbzYHOOL commented 6 years ago

Ok :'( (but I won't because it's useless to open any issue there)