Remove hardcoded ansible.cfg in tox

It is possible users want to use their own ansible.cfg file. Now we
default to what ever ansible-playbook can find. Also update our pre.yaml
file to install ansible.cfg into the home directory of the zuul user.

Change-Id: I354078caed5bee8954a7c21ebef98c8a540f6778
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-12-10 13:21:52 -05:00
parent 9d8e5eaeea
commit acdfa8785c
2 changed files with 6 additions and 1 deletions

View File

@ -23,6 +23,12 @@
chdir: "{{ windmill_src_dir }}"
command: tox -evenv --notest
- name: Install ansible configuration file
copy:
dest: "{{ ansible_user_dir }}/.ansible.cfg"
remote_src: True
src: "{{ ansible_user_dir }}/{{ windmill_src_dir }}/tests/ansible.cfg"
- name: Install ansible roles via galaxy
args:
chdir: "{{ windmill_src_dir }}"

View File

@ -39,7 +39,6 @@ passenv =
USER
setenv =
ANSIBLE_CALLBACK_PLUGINS = {envsitepackagesdir}/ara/plugins/callbacks
ANSIBLE_CONFIG = {toxinidir}/tests/ansible.cfg
PYTHONUNBUFFERED = 1
[flake8]