Fix double conditional bug
Currently there are two conditional statements on a single task, so only the last is applied. Change-Id: I48493b11f58476f0c3177335c8143e3a3fd06423
This commit is contained in:
@@ -53,20 +53,18 @@
|
||||
- include: cinder_db_setup.yml
|
||||
static: no
|
||||
when:
|
||||
- "groups['cinder_api'] | length > 0"
|
||||
- "'cinder_api' in group_names"
|
||||
- "inventory_hostname == ansible_play_hosts[0]"
|
||||
when:
|
||||
- groups['cinder_api'] | length > 0
|
||||
tags:
|
||||
- cinder-config
|
||||
|
||||
- include: cinder_service_setup.yml
|
||||
static: no
|
||||
when:
|
||||
- "groups['cinder_api'] | length > 0"
|
||||
- "'cinder_api' in group_names"
|
||||
- "inventory_hostname == ansible_play_hosts[0]"
|
||||
when:
|
||||
- groups['cinder_api'] | length > 0
|
||||
tags:
|
||||
- cinder-config
|
||||
|
||||
@@ -80,10 +78,9 @@
|
||||
- include: cinder_backends.yml
|
||||
static: no
|
||||
when:
|
||||
- "groups['cinder_volume'] | length > 0"
|
||||
- "'cinder_volume' in group_names"
|
||||
- "inventory_hostname == ansible_play_hosts[0]"
|
||||
when:
|
||||
- groups['cinder_volume'] | length > 0
|
||||
tags:
|
||||
- cinder-config
|
||||
|
||||
|
||||
Reference in New Issue
Block a user