From 7ff27de7acd573a4ae94a930ec040bd28060918c Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Mon, 29 Jun 2020 15:47:50 +0100 Subject: [PATCH] Performance: remove unnecessary conditions from includes There are a number of tasks where we conditionally use include_tasks with a condition, and the condition is always true. This change removes these conditions, in preparation for switching unconditional task includes to task imports. Partially-Implements: blueprint performance-improvements Change-Id: I3804c440fe3552950d9d434ef5409f685c39bbcf --- ansible/roles/aodh/tasks/deploy.yml | 4 ---- ansible/roles/barbican/tasks/deploy.yml | 3 --- ansible/roles/blazar/tasks/deploy.yml | 2 -- ansible/roles/ceilometer/tasks/deploy.yml | 2 -- ansible/roles/cinder/tasks/deploy.yml | 8 -------- ansible/roles/cloudkitty/tasks/deploy.yml | 2 -- ansible/roles/cyborg/tasks/deploy.yml | 3 --- ansible/roles/designate/tasks/deploy.yml | 7 ------- ansible/roles/freezer/tasks/deploy.yml | 2 -- ansible/roles/glance/tasks/deploy.yml | 8 ++------ ansible/roles/gnocchi/tasks/deploy.yml | 3 --- ansible/roles/heat/tasks/deploy.yml | 6 ------ ansible/roles/ironic/tasks/deploy.yml | 5 ----- ansible/roles/karbor/tasks/deploy.yml | 3 --- ansible/roles/magnum/tasks/deploy.yml | 2 -- ansible/roles/manila/tasks/deploy.yml | 4 ---- ansible/roles/masakari/tasks/deploy.yml | 3 --- ansible/roles/mistral/tasks/deploy.yml | 4 ---- ansible/roles/monasca/tasks/deploy.yml | 18 ------------------ ansible/roles/murano/tasks/deploy.yml | 4 ---- ansible/roles/octavia/tasks/deploy.yml | 4 ---- ansible/roles/qinling/tasks/deploy.yml | 2 -- ansible/roles/sahara/tasks/deploy.yml | 2 -- ansible/roles/senlin/tasks/deploy.yml | 4 ---- ansible/roles/skydive/tasks/deploy.yml | 2 -- ansible/roles/solum/tasks/deploy.yml | 4 ---- ansible/roles/tacker/tasks/deploy.yml | 4 ---- ansible/roles/trove/tasks/deploy.yml | 3 --- ansible/roles/vitrage/tasks/deploy.yml | 5 ----- ansible/roles/vmtp/tasks/deploy.yml | 1 - ansible/roles/watcher/tasks/deploy.yml | 3 --- ansible/roles/zun/tasks/deploy.yml | 3 --- 32 files changed, 2 insertions(+), 128 deletions(-) diff --git a/ansible/roles/aodh/tasks/deploy.yml b/ansible/roles/aodh/tasks/deploy.yml index c866c1e26a..050039b2d5 100644 --- a/ansible/roles/aodh/tasks/deploy.yml +++ b/ansible/roles/aodh/tasks/deploy.yml @@ -3,10 +3,6 @@ when: inventory_hostname in groups['aodh-api'] - include_tasks: config.yml - when: inventory_hostname in groups['aodh-api'] or - inventory_hostname in groups['aodh-evaluator'] or - inventory_hostname in groups['aodh-listener'] or - inventory_hostname in groups['aodh-notifier'] - include_tasks: clone.yml when: aodh_dev_mode | bool diff --git a/ansible/roles/barbican/tasks/deploy.yml b/ansible/roles/barbican/tasks/deploy.yml index 26b9bb9273..1d9559b67f 100644 --- a/ansible/roles/barbican/tasks/deploy.yml +++ b/ansible/roles/barbican/tasks/deploy.yml @@ -3,9 +3,6 @@ when: inventory_hostname in groups['barbican-api'] - include_tasks: config.yml - when: inventory_hostname in groups['barbican-api'] or - inventory_hostname in groups['barbican-worker'] or - inventory_hostname in groups['barbican-keystone-listener'] - include_tasks: clone.yml when: barbican_dev_mode | bool diff --git a/ansible/roles/blazar/tasks/deploy.yml b/ansible/roles/blazar/tasks/deploy.yml index a05a8e0266..06db3922d1 100644 --- a/ansible/roles/blazar/tasks/deploy.yml +++ b/ansible/roles/blazar/tasks/deploy.yml @@ -3,8 +3,6 @@ when: inventory_hostname in groups['blazar-api'] - include_tasks: config.yml - when: inventory_hostname in groups['blazar-api'] or - inventory_hostname in groups['blazar-manager'] - include_tasks: clone.yml when: blazar_dev_mode | bool diff --git a/ansible/roles/ceilometer/tasks/deploy.yml b/ansible/roles/ceilometer/tasks/deploy.yml index 3e282bd664..e6eff0475e 100644 --- a/ansible/roles/ceilometer/tasks/deploy.yml +++ b/ansible/roles/ceilometer/tasks/deploy.yml @@ -3,8 +3,6 @@ when: inventory_hostname in groups['ceilometer'] - include_tasks: config.yml - when: inventory_hostname in groups['ceilometer'] or - inventory_hostname in groups['compute'] - include_tasks: clone.yml when: ceilometer_dev_mode | bool diff --git a/ansible/roles/cinder/tasks/deploy.yml b/ansible/roles/cinder/tasks/deploy.yml index ad850c58b5..9b3f0d2812 100644 --- a/ansible/roles/cinder/tasks/deploy.yml +++ b/ansible/roles/cinder/tasks/deploy.yml @@ -3,10 +3,6 @@ when: inventory_hostname in groups['cinder-api'] - include_tasks: config.yml - when: inventory_hostname in groups['cinder-api'] or - inventory_hostname in groups['cinder-volume'] or - inventory_hostname in groups['cinder-scheduler'] or - inventory_hostname in groups['cinder-backup'] - include_tasks: clone.yml when: cinder_dev_mode | bool @@ -18,7 +14,3 @@ meta: flush_handlers - include_tasks: check.yml - when: inventory_hostname in groups['cinder-api'] or - inventory_hostname in groups['cinder-volume'] or - inventory_hostname in groups['cinder-scheduler'] or - inventory_hostname in groups['cinder-backup'] diff --git a/ansible/roles/cloudkitty/tasks/deploy.yml b/ansible/roles/cloudkitty/tasks/deploy.yml index 32fa68ed29..6184a1e91e 100644 --- a/ansible/roles/cloudkitty/tasks/deploy.yml +++ b/ansible/roles/cloudkitty/tasks/deploy.yml @@ -3,8 +3,6 @@ when: inventory_hostname in groups['cloudkitty-api'] - include_tasks: config.yml - when: inventory_hostname in groups['cloudkitty-api'] or - inventory_hostname in groups['cloudkitty-processor'] - include_tasks: clone.yml when: cloudkitty_dev_mode | bool diff --git a/ansible/roles/cyborg/tasks/deploy.yml b/ansible/roles/cyborg/tasks/deploy.yml index c63cdcdf8f..836f6a21b0 100644 --- a/ansible/roles/cyborg/tasks/deploy.yml +++ b/ansible/roles/cyborg/tasks/deploy.yml @@ -3,9 +3,6 @@ when: inventory_hostname in groups['cyborg-api'] - include_tasks: config.yml - when: inventory_hostname in groups['cyborg-api'] or - inventory_hostname in groups['cyborg-conductor'] or - inventory_hostname in groups['cyborg-agent'] - include_tasks: bootstrap.yml when: inventory_hostname in groups['cyborg-api'] diff --git a/ansible/roles/designate/tasks/deploy.yml b/ansible/roles/designate/tasks/deploy.yml index bf212d9962..b1d3258407 100644 --- a/ansible/roles/designate/tasks/deploy.yml +++ b/ansible/roles/designate/tasks/deploy.yml @@ -3,13 +3,6 @@ when: inventory_hostname in groups['designate-api'] - include_tasks: config.yml - when: inventory_hostname in groups['designate-api'] or - inventory_hostname in groups['designate-central'] or - inventory_hostname in groups['designate-producer'] or - inventory_hostname in groups['designate-mdns'] or - inventory_hostname in groups['designate-worker'] or - inventory_hostname in groups['designate-sink'] or - inventory_hostname in groups['designate-backend-bind9'] - include_tasks: clone.yml when: designate_dev_mode | bool diff --git a/ansible/roles/freezer/tasks/deploy.yml b/ansible/roles/freezer/tasks/deploy.yml index 7a283ae3b3..90d6f1539e 100644 --- a/ansible/roles/freezer/tasks/deploy.yml +++ b/ansible/roles/freezer/tasks/deploy.yml @@ -3,8 +3,6 @@ when: inventory_hostname in groups['freezer-api'] - include_tasks: config.yml - when: inventory_hostname in groups['freezer-api'] or - inventory_hostname in groups['freezer-scheduler'] - include_tasks: bootstrap.yml when: freezer_database_backend == 'mariadb' and inventory_hostname in groups['freezer-api'] diff --git a/ansible/roles/glance/tasks/deploy.yml b/ansible/roles/glance/tasks/deploy.yml index e40a5686d3..3d745d5fb4 100644 --- a/ansible/roles/glance/tasks/deploy.yml +++ b/ansible/roles/glance/tasks/deploy.yml @@ -1,19 +1,15 @@ --- -- include_tasks: register.yml - when: inventory_hostname in groups['glance-api'] +- import_tasks: register.yml - include_tasks: config.yml - include_tasks: clone.yml when: - glance_dev_mode | bool - - inventory_hostname in groups['glance-api'] -- include_tasks: bootstrap.yml - when: inventory_hostname in groups['glance-api'] +- import_tasks: bootstrap.yml - name: Flush handlers meta: flush_handlers - include_tasks: check.yml - when: inventory_hostname in groups['glance-api'] diff --git a/ansible/roles/gnocchi/tasks/deploy.yml b/ansible/roles/gnocchi/tasks/deploy.yml index f371e4f03e..7efeef1fcf 100644 --- a/ansible/roles/gnocchi/tasks/deploy.yml +++ b/ansible/roles/gnocchi/tasks/deploy.yml @@ -3,9 +3,6 @@ when: inventory_hostname in groups['gnocchi-api'] - include_tasks: config.yml - when: inventory_hostname in groups['gnocchi-statsd'] or - inventory_hostname in groups['gnocchi-api'] or - inventory_hostname in groups['gnocchi-metricd'] - include_tasks: bootstrap.yml when: inventory_hostname in groups['gnocchi-api'] diff --git a/ansible/roles/heat/tasks/deploy.yml b/ansible/roles/heat/tasks/deploy.yml index d877d83616..2a390f1df1 100644 --- a/ansible/roles/heat/tasks/deploy.yml +++ b/ansible/roles/heat/tasks/deploy.yml @@ -3,16 +3,10 @@ when: inventory_hostname in groups['heat-api'] - include_tasks: config.yml - when: inventory_hostname in groups['heat-api'] or - inventory_hostname in groups['heat-api-cfn'] or - inventory_hostname in groups['heat-engine'] - include_tasks: clone.yml when: - heat_dev_mode | bool - - inventory_hostname in groups['heat-api'] or - inventory_hostname in groups['heat-api-cfn'] or - inventory_hostname in groups['heat-engine'] - include_tasks: bootstrap.yml when: inventory_hostname in groups['heat-api'] diff --git a/ansible/roles/ironic/tasks/deploy.yml b/ansible/roles/ironic/tasks/deploy.yml index 4dddfa9b78..11b07dce79 100644 --- a/ansible/roles/ironic/tasks/deploy.yml +++ b/ansible/roles/ironic/tasks/deploy.yml @@ -7,11 +7,6 @@ - include_tasks: config-host.yml - include_tasks: config.yml - when: inventory_hostname in groups['ironic-api'] or - inventory_hostname in groups['ironic-conductor'] or - inventory_hostname in groups['ironic-inspector'] or - inventory_hostname in groups['ironic-pxe'] or - inventory_hostname in groups['ironic-ipxe'] - include_tasks: clone.yml when: ironic_dev_mode | bool diff --git a/ansible/roles/karbor/tasks/deploy.yml b/ansible/roles/karbor/tasks/deploy.yml index 5935feb924..a140dc850b 100644 --- a/ansible/roles/karbor/tasks/deploy.yml +++ b/ansible/roles/karbor/tasks/deploy.yml @@ -3,9 +3,6 @@ when: inventory_hostname in groups['karbor-api'] - include_tasks: config.yml - when: inventory_hostname in groups['karbor-api'] or - inventory_hostname in groups['karbor-protection'] or - inventory_hostname in groups['karbor-operationengine'] - include_tasks: bootstrap.yml when: inventory_hostname in groups['karbor-api'] diff --git a/ansible/roles/magnum/tasks/deploy.yml b/ansible/roles/magnum/tasks/deploy.yml index aa3b2e08cd..1ce45c8f11 100644 --- a/ansible/roles/magnum/tasks/deploy.yml +++ b/ansible/roles/magnum/tasks/deploy.yml @@ -3,8 +3,6 @@ when: inventory_hostname in groups['magnum-api'] - include_tasks: config.yml - when: inventory_hostname in groups['magnum-api'] or - inventory_hostname in groups['magnum-conductor'] - include_tasks: clone.yml when: magnum_dev_mode | bool diff --git a/ansible/roles/manila/tasks/deploy.yml b/ansible/roles/manila/tasks/deploy.yml index b3f48817f3..6b21fbd007 100644 --- a/ansible/roles/manila/tasks/deploy.yml +++ b/ansible/roles/manila/tasks/deploy.yml @@ -6,10 +6,6 @@ when: inventory_hostname in groups['manila-api'] - include_tasks: config.yml - when: inventory_hostname in groups['manila-api'] or - inventory_hostname in groups['manila-data'] or - inventory_hostname in groups['manila-share'] or - inventory_hostname in groups['manila-scheduler'] - include_tasks: bootstrap.yml when: inventory_hostname in groups['manila-api'] diff --git a/ansible/roles/masakari/tasks/deploy.yml b/ansible/roles/masakari/tasks/deploy.yml index e63d0d841f..52bec8b647 100644 --- a/ansible/roles/masakari/tasks/deploy.yml +++ b/ansible/roles/masakari/tasks/deploy.yml @@ -3,9 +3,6 @@ when: inventory_hostname in groups['masakari-api'] - include_tasks: config.yml - when: inventory_hostname in groups['masakari-api'] or - inventory_hostname in groups['masakari-engine'] or - inventory_hostname in groups['masakari-monitors'] - include_tasks: clone.yml when: masakari_dev_mode | bool diff --git a/ansible/roles/mistral/tasks/deploy.yml b/ansible/roles/mistral/tasks/deploy.yml index a1359643af..a921f7409b 100644 --- a/ansible/roles/mistral/tasks/deploy.yml +++ b/ansible/roles/mistral/tasks/deploy.yml @@ -3,10 +3,6 @@ when: inventory_hostname in groups['mistral-api'] - include_tasks: config.yml - when: inventory_hostname in groups['mistral-api'] or - inventory_hostname in groups['mistral-engine'] or - inventory_hostname in groups['mistral-event-engne'] or - inventory_hostname in groups['mistral-executor'] - include_tasks: clone.yml when: mistral_dev_mode | bool diff --git a/ansible/roles/monasca/tasks/deploy.yml b/ansible/roles/monasca/tasks/deploy.yml index 705ba14d4b..85f3ee9cdd 100644 --- a/ansible/roles/monasca/tasks/deploy.yml +++ b/ansible/roles/monasca/tasks/deploy.yml @@ -4,15 +4,6 @@ inventory_hostname in groups['monasca-api'] - include_tasks: config.yml - when: inventory_hostname in groups['monasca-agent'] or - inventory_hostname in groups['monasca-api'] or - inventory_hostname in groups['monasca-grafana'] or - inventory_hostname in groups['monasca-log-transformer'] or - inventory_hostname in groups['monasca-log-persister'] or - inventory_hostname in groups['monasca-log-metrics'] or - inventory_hostname in groups['monasca-thresh'] or - inventory_hostname in groups['monasca-notification'] or - inventory_hostname in groups['monasca-persister'] - include_tasks: bootstrap.yml when: inventory_hostname in groups['monasca-api'] or @@ -22,14 +13,5 @@ meta: flush_handlers - include_tasks: check.yml - when: inventory_hostname in groups['monasca-agent'] or - inventory_hostname in groups['monasca-api'] or - inventory_hostname in groups['monasca-grafana'] or - inventory_hostname in groups['monasca-log-transformer'] or - inventory_hostname in groups['monasca-log-persister'] or - inventory_hostname in groups['monasca-log-metrics'] or - inventory_hostname in groups['monasca-thresh'] or - inventory_hostname in groups['monasca-notification'] or - inventory_hostname in groups['monasca-persister'] - include_tasks: post_config.yml diff --git a/ansible/roles/murano/tasks/deploy.yml b/ansible/roles/murano/tasks/deploy.yml index 70d6017670..a4bb14e9d5 100644 --- a/ansible/roles/murano/tasks/deploy.yml +++ b/ansible/roles/murano/tasks/deploy.yml @@ -3,14 +3,10 @@ when: inventory_hostname in groups['murano-api'] - include_tasks: config.yml - when: inventory_hostname in groups['murano-api'] or - inventory_hostname in groups['murano-engine'] - include_tasks: clone.yml when: - murano_dev_mode | bool - - inventory_hostname in groups['murano-api'] or - inventory_hostname in groups['murano-engine'] - include_tasks: bootstrap.yml when: inventory_hostname in groups['murano-api'] diff --git a/ansible/roles/octavia/tasks/deploy.yml b/ansible/roles/octavia/tasks/deploy.yml index d325cd7bdf..8aeb1796a1 100644 --- a/ansible/roles/octavia/tasks/deploy.yml +++ b/ansible/roles/octavia/tasks/deploy.yml @@ -3,10 +3,6 @@ when: inventory_hostname in groups['octavia-api'] - include_tasks: config.yml - when: inventory_hostname in groups['octavia-api'] or - inventory_hostname in groups['octavia-health-manager'] or - inventory_hostname in groups['octavia-housekeeping'] or - inventory_hostname in groups['octavia-worker'] - include_tasks: clone.yml when: octavia_dev_mode | bool diff --git a/ansible/roles/qinling/tasks/deploy.yml b/ansible/roles/qinling/tasks/deploy.yml index 471893e058..ec7230594d 100644 --- a/ansible/roles/qinling/tasks/deploy.yml +++ b/ansible/roles/qinling/tasks/deploy.yml @@ -3,8 +3,6 @@ when: inventory_hostname in groups['qinling-api'] - include_tasks: config.yml - when: inventory_hostname in groups['qinling-api'] or - inventory_hostname in groups['qinling-engine'] - include_tasks: clone.yml when: qinling_dev_mode | bool diff --git a/ansible/roles/sahara/tasks/deploy.yml b/ansible/roles/sahara/tasks/deploy.yml index 33942c9500..79b0d063af 100644 --- a/ansible/roles/sahara/tasks/deploy.yml +++ b/ansible/roles/sahara/tasks/deploy.yml @@ -3,8 +3,6 @@ when: inventory_hostname in groups['sahara-api'] - include_tasks: config.yml - when: inventory_hostname in groups['sahara-api'] or - inventory_hostname in groups['sahara-engine'] - include_tasks: clone.yml when: sahara_dev_mode | bool diff --git a/ansible/roles/senlin/tasks/deploy.yml b/ansible/roles/senlin/tasks/deploy.yml index e7077189c0..8ad1ea84e9 100644 --- a/ansible/roles/senlin/tasks/deploy.yml +++ b/ansible/roles/senlin/tasks/deploy.yml @@ -3,10 +3,6 @@ when: inventory_hostname in groups['senlin-api'] - include_tasks: config.yml - when: inventory_hostname in groups['senlin-api'] or - inventory_hostname in groups['senlin-conductor'] or - inventory_hostname in groups['senlin-engine'] or - inventory_hostname in groups['senlin-health-manager'] - include_tasks: clone.yml when: senlin_dev_mode | bool diff --git a/ansible/roles/skydive/tasks/deploy.yml b/ansible/roles/skydive/tasks/deploy.yml index 1281c2f54e..375dcad19b 100644 --- a/ansible/roles/skydive/tasks/deploy.yml +++ b/ansible/roles/skydive/tasks/deploy.yml @@ -1,7 +1,5 @@ --- - include_tasks: config.yml - when: inventory_hostname in groups['skydive-analyzer'] or - inventory_hostname in groups['skydive-agent'] - name: Flush handlers meta: flush_handlers diff --git a/ansible/roles/solum/tasks/deploy.yml b/ansible/roles/solum/tasks/deploy.yml index e750b24651..0da134083e 100644 --- a/ansible/roles/solum/tasks/deploy.yml +++ b/ansible/roles/solum/tasks/deploy.yml @@ -3,10 +3,6 @@ when: inventory_hostname in groups['solum-api'] - include_tasks: config.yml - when: inventory_hostname in groups['solum-api'] or - inventory_hostname in groups['solum-deploy'] or - inventory_hostname in groups['solum-worker'] or - inventory_hostname in groups['solum-conductor'] - include_tasks: clone.yml when: solum_dev_mode | bool diff --git a/ansible/roles/tacker/tasks/deploy.yml b/ansible/roles/tacker/tasks/deploy.yml index aad69c4fce..8e08e29250 100644 --- a/ansible/roles/tacker/tasks/deploy.yml +++ b/ansible/roles/tacker/tasks/deploy.yml @@ -3,14 +3,10 @@ when: inventory_hostname in groups['tacker-server'] - include_tasks: config.yml - when: inventory_hostname in groups['tacker-server'] or - inventory_hostname in groups['tacker-conductor'] - include_tasks: clone.yml when: - tacker_dev_mode | bool - - inventory_hostname in groups['tacker-server'] or - inventory_hostname in groups['tacker-conductor'] - include_tasks: bootstrap.yml when: inventory_hostname in groups['tacker-server'] diff --git a/ansible/roles/trove/tasks/deploy.yml b/ansible/roles/trove/tasks/deploy.yml index d6f3357728..62d1ebd295 100644 --- a/ansible/roles/trove/tasks/deploy.yml +++ b/ansible/roles/trove/tasks/deploy.yml @@ -3,9 +3,6 @@ when: inventory_hostname in groups['trove-api'] - include_tasks: config.yml - when: inventory_hostname in groups['trove-api'] or - inventory_hostname in groups['trove-conductor'] or - inventory_hostname in groups['trove-taskmanager'] - include_tasks: clone.yml when: trove_dev_mode | bool diff --git a/ansible/roles/vitrage/tasks/deploy.yml b/ansible/roles/vitrage/tasks/deploy.yml index b29d8ffa9f..c9f38f1924 100644 --- a/ansible/roles/vitrage/tasks/deploy.yml +++ b/ansible/roles/vitrage/tasks/deploy.yml @@ -3,11 +3,6 @@ when: inventory_hostname in groups['vitrage-api'] - include_tasks: config.yml - when: inventory_hostname in groups['vitrage-api'] or - inventory_hostname in groups['vitrage-ml'] or - inventory_hostname in groups['vitrage-graph'] or - inventory_hostname in groups['vitrage-notifier'] or - inventory_hostname in groups['vitrage-persistor'] - include_tasks: clone.yml when: vitrage_dev_mode | bool diff --git a/ansible/roles/vmtp/tasks/deploy.yml b/ansible/roles/vmtp/tasks/deploy.yml index aac98e6473..375dcad19b 100644 --- a/ansible/roles/vmtp/tasks/deploy.yml +++ b/ansible/roles/vmtp/tasks/deploy.yml @@ -1,6 +1,5 @@ --- - include_tasks: config.yml - when: inventory_hostname in groups['vmtp'] - name: Flush handlers meta: flush_handlers diff --git a/ansible/roles/watcher/tasks/deploy.yml b/ansible/roles/watcher/tasks/deploy.yml index 94e04756ba..df83918fa9 100644 --- a/ansible/roles/watcher/tasks/deploy.yml +++ b/ansible/roles/watcher/tasks/deploy.yml @@ -3,9 +3,6 @@ when: inventory_hostname in groups['watcher-api'] - include_tasks: config.yml - when: inventory_hostname in groups['watcher-api'] or - inventory_hostname in groups['watcher-engine'] or - inventory_hostname in groups['watcher-applier'] - include_tasks: clone.yml when: watcher_dev_mode | bool diff --git a/ansible/roles/zun/tasks/deploy.yml b/ansible/roles/zun/tasks/deploy.yml index e55ac2ddc4..0e1a16ae11 100644 --- a/ansible/roles/zun/tasks/deploy.yml +++ b/ansible/roles/zun/tasks/deploy.yml @@ -3,9 +3,6 @@ when: inventory_hostname in groups['zun-api'] - include_tasks: config.yml - when: inventory_hostname in groups['zun-api'] or - inventory_hostname in groups['zun-compute'] or - inventory_hostname in groups['zun-cni-daemon'] - include_tasks: clone.yml when: zun_dev_mode | bool