From 501bd0526dad55a96cea07dce111374bbeb8f1b8 Mon Sep 17 00:00:00 2001 From: David Shrewsbury Date: Tue, 19 Sep 2017 14:15:08 -0400 Subject: [PATCH] Changes for Ansible 2.4 Squashed changes: - Use 'inventory' instead of 'hostfile' in ansible.cfg. 'hostfile' is deprecated. - Use 'os.environ.copy()' in zuul_return.py since this causes 2.4 to throw an exception now deep within module.exit_json(). Change-Id: I0a52c9e169a54d24a7b361010045fb10211418b7 --- playbooks/zuul-stream/templates/ansible.cfg.j2 | 2 +- tools/test-logs.sh | 2 +- zuul/ansible/library/zuul_return.py | 2 +- zuul/executor/server.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/playbooks/zuul-stream/templates/ansible.cfg.j2 b/playbooks/zuul-stream/templates/ansible.cfg.j2 index 24f459e0e0..41ffc0cead 100644 --- a/playbooks/zuul-stream/templates/ansible.cfg.j2 +++ b/playbooks/zuul-stream/templates/ansible.cfg.j2 @@ -1,5 +1,5 @@ [defaults] -hostfile = {{ ansible_user_dir }}/inventory.yaml +inventory = {{ ansible_user_dir }}/inventory.yaml gathering = smart gather_subset = !all lookup_plugins = {{ ansible_user_dir }}/src/git.openstack.org/openstack-infra/zuul/zuul/ansible/lookup diff --git a/tools/test-logs.sh b/tools/test-logs.sh index bf2147dc21..a514dd831d 100644 --- a/tools/test-logs.sh +++ b/tools/test-logs.sh @@ -42,7 +42,7 @@ fi cat >$WORK_DIR/ansible.cfg <