-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
debian 8 amd64
openjdk 8u171
jenkins 2.134
ansible-plugin 1.0
Currently there is no option to specify ansible config file. Since ansible-plugin doesn't cd to playbook-file directory, ansible.cfg in this directory is not honored. So, I have to modify system /etc/ansible/ansible.cfg or user's ~/.ansible.cfg.
For some reason ansible-playbook itself doesn't have an option to specify config from command line.
Now I see 2 workarounds:
- set ANSIBLE_CONFIG environment variable before the ansible step
- copy ansible.cfg to workspace before the ansible step
It's obvious that both are inconvenient.
Please, add an option to specify ansible config file, that will set ANSIBLE_CONFIG envrionment variable (or more widely - an option to set any environment variable for running playbook).