From 53fe850aa3deacb169fb485bf213345a716853cf Mon Sep 17 00:00:00 2001 From: Wayne Warren Date: Wed, 22 Aug 2018 10:07:35 -0500 Subject: [PATCH] Make openstack-service-setup compatible with older ansible This change allows this playbook to be run using an older version of ansible. This change is necessary for my use case where I am running all OSA and related playbooks in a docker container locally for a Newton deploy. The use of Newton OSA's ansible bootstrap script means that the openstack-ansible my workflow uses requires Ansible 2.1, which does not support `include_tasks`. This change addresses that problem by replacing `include_tasks` in the playbook that needs to be run using openstack-ansible with `include` which produces the desired result. Change-Id: I8b2a0217e851d022ee40cbdd8bc8045e18d5a07d --- multi-node-aio/playbooks/openstack-service-setup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multi-node-aio/playbooks/openstack-service-setup.yml b/multi-node-aio/playbooks/openstack-service-setup.yml index a816eccf..6ec38b03 100644 --- a/multi-node-aio/playbooks/openstack-service-setup.yml +++ b/multi-node-aio/playbooks/openstack-service-setup.yml @@ -110,7 +110,7 @@ - create_networks # Install some Linux system images - - include_tasks: "{{ playbook_dir }}/openstack-image-setup.yml" + - include: "{{ playbook_dir }}/openstack-image-setup.yml" with_items: "{{ images }}" tags: - create_images