Answer the question
In order to leave comments, you need to log in
How to pass a parameter to Ansible?
i don't have access to ansible.cfg but i want to pass a parameter when calling the playbook, can this be done?
stdout_callback = myplag I want to connect my plugin, is there a way?
Answer the question
In order to leave comments, you need to log in
if you don't have access to the system /etc/ansible/ansible.cfg , you can use your own /home/user/.ansible.cfg , plus a couple more options, including an environment variable pointing to any custom file.
https://docs.ansible.com/ansible/latest/reference_...
Strange case, isn't that what you're talking about?
-M, --module-path
prepend colon-separated path(s) to module library (default=~/.ansible/plugins/modules:/usr/share/ansible/plugins/modules)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question