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

Ability to specify ansible config file

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: ansible-plugin
    • Labels:
      None
    • Environment:
      debian 8 amd64
      openjdk 8u171
      jenkins 2.134
      ansible-plugin 1.0
    • Similar Issues:

      Description

      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).

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              sirot Jean-Christophe Sirot
              Reporter:
              urusha Sergey Urushkin
            • Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: