tripleo-ci/roles/common/tasks/main.yml
Sorin Sbarnea e4bfd2e829 Implement workaround for failure to load ansible.cfg
While the correct fix for this is to stop using fetch-zuul-cloner job,
this is not possible right now as is imported by zuul base job.

infra-root said that they it will take more time for the zuul base
to be fixed due to risk involved on very-old jobs, so we need to
implement a local fix for tripleo.

Change-Id: I14abcb3273e68e267d6bcc7b2a060486bbd77351
Partial-Bug: 1807703
2019-01-14 10:14:22 +00:00

16 lines
546 B
YAML

# In ansible 2.7 should be enough to add the option public: true to the calling include_role
# for this role. This is the best workaround
- name: Include the vars to be available for the playbook
include_vars:
dir: vars
# Workaround for https://launchpad.net/bugs/1807703 safe to remove only once
# fetch-zuul-cloner is no longer part of zuul base job.
- name: apply o-w workaround on src to avoid failure to load ansible.cfg
file:
path: "{{ ansible_user_dir }}/src"
state: directory
recurse: yes
mode: o-w
become: yes