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: Ifae975442138cedd0efe11c9208f9337c9fd9d0f Related-Bug: https://github.com/ansible/ansible/issues/17687
This commit is contained in:
parent
b19b0e5920
commit
03a71eecc8
@ -16,9 +16,9 @@
|
||||
- include: pre_install.yml
|
||||
|
||||
- include: install_online.yml
|
||||
when:
|
||||
- not pip_offline_install | bool
|
||||
static: no
|
||||
when: not pip_offline_install | bool
|
||||
|
||||
- include: install_offline.yml
|
||||
when:
|
||||
- pip_offline_install | bool
|
||||
static: no
|
||||
when: pip_offline_install | bool
|
||||
|
@ -29,8 +29,8 @@
|
||||
- pip-configuration
|
||||
|
||||
- include: lockdown.yml
|
||||
when:
|
||||
- pip_lock_to_internal_repo | bool
|
||||
static: no
|
||||
when: pip_lock_to_internal_repo | bool
|
||||
|
||||
- include: install.yml
|
||||
tags:
|
||||
|
Loading…
Reference in New Issue
Block a user