Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52920

Ability to specify ansible config file

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ansible-plugin
    • 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).

            sirot Jean-Christophe Sirot
            urusha Sergey Urushkin
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: