File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ addons:
13
13
14
14
install :
15
15
# Install ansible
16
- - pip install ansible
16
+ - pip install ansible jmespath
17
17
18
18
# Check ansible version
19
19
- ansible --version
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ The OpenStack APIs should be accessible from the target host. OpenStack
12
12
Newton or later is required. Client credentials should have been set
13
13
in the environment, or using the ` clouds.yaml ` format.
14
14
15
+ In terms of Python ` pip ` packages, the requirements are:
16
+ - ansible
17
+ - jmespath (required by ` json_query ` filte)
18
+
15
19
Role Variables
16
20
--------------
17
21
Original file line number Diff line number Diff line change 26
26
- name : Extract node groups
27
27
set_fact :
28
28
cluster_group : " {{ cluster_stack.stack.outputs | selectattr('output_key', 'equalto', 'cluster_group') | first }}"
29
- when : cluster_state != 'query'
29
+ when : cluster_state in ['present', 'absent']
30
30
31
31
# Case 2: we are performing a read-only query of the cluster configuration.
32
32
# Read the stack's outputs via the API.
129
129
- " {{ cluster_nodes }}"
130
130
delegate_to : " {{ cluster_gw_ip | default('localhost') }}"
131
131
132
- when : cluster_state != 'absent'
132
+ when : cluster_state in ['present', 'query']
You can’t perform that action at this time.
0 commit comments