Force Ansible to use dynamic includes
Ansible 2.1.1 introduces a regression in the way conditional includes are handled which results in every task in the included file being evaluated even if the condition for the include is not met. This extends the run time significantly for a deployment. This patch forces all conditional includes to be dynamic. Change-Id: Iea4689aa17b232911275d9a51cfbd5713b78a557 Related-Bug: https://github.com/ansible/ansible/issues/17687
This commit is contained in:
parent
4681e70ac6
commit
12d56f37ca
@ -14,9 +14,11 @@
|
||||
# limitations under the License.
|
||||
|
||||
- include: designate_init_upstart.yml
|
||||
static: no
|
||||
when: pid1_name == "init"
|
||||
|
||||
- include: designate_init_systemd.yml
|
||||
static: no
|
||||
when: pid1_name == "systemd"
|
||||
|
||||
- name: Load service
|
||||
|
@ -14,8 +14,8 @@
|
||||
# limitations under the License.
|
||||
|
||||
- include: designate_install_apt.yml
|
||||
when:
|
||||
- ansible_pkg_mgr == 'apt'
|
||||
static: no
|
||||
when: ansible_pkg_mgr == 'apt'
|
||||
|
||||
- name: Create developer mode constraint file
|
||||
copy:
|
||||
|
@ -53,18 +53,17 @@
|
||||
- designate-install
|
||||
|
||||
- include: designate_db_setup.yml
|
||||
when: >
|
||||
inventory_hostname == groups['designate_all'][0]
|
||||
static: no
|
||||
when: inventory_hostname == groups['designate_all'][0]
|
||||
tags:
|
||||
- designate-install
|
||||
|
||||
- include: designate_service_setup.yml
|
||||
when: >
|
||||
inventory_hostname == groups['designate_all'][0]
|
||||
static: no
|
||||
when: inventory_hostname == groups['designate_all'][0]
|
||||
tags:
|
||||
- designate-install
|
||||
|
||||
- name: Flush handlers
|
||||
meta: flush_handlers
|
||||
|
||||
|
||||
|
@ -10,6 +10,10 @@
|
||||
src: https://git.openstack.org/openstack/openstack-ansible-memcached_server
|
||||
scm: git
|
||||
version: master
|
||||
- name: openstack_hosts
|
||||
src: https://git.openstack.org/openstack/openstack-ansible-openstack_hosts
|
||||
scm: git
|
||||
version: master
|
||||
- name: lxc_hosts
|
||||
src: https://git.openstack.org/openstack/openstack-ansible-lxc_hosts
|
||||
scm: git
|
||||
|
Loading…
x
Reference in New Issue
Block a user