Skip to content

Commit 8f05355

Browse files
author
Bharat Kunwar
committed
Address Mark's comment
1 parent 06cfd0e commit 8f05355

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ addons:
1313

1414
install:
1515
# Install ansible
16-
- pip install ansible
16+
- pip install ansible jmespath
1717

1818
# Check ansible version
1919
- ansible --version

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ The OpenStack APIs should be accessible from the target host. OpenStack
1212
Newton or later is required. Client credentials should have been set
1313
in the environment, or using the `clouds.yaml` format.
1414

15+
In terms of Python `pip` packages, the requirements are:
16+
- ansible
17+
- jmespath (required by `json_query` filte)
18+
1519
Role Variables
1620
--------------
1721

tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
- name: Extract node groups
2727
set_fact:
2828
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']
3030

3131
# Case 2: we are performing a read-only query of the cluster configuration.
3232
# Read the stack's outputs via the API.
@@ -129,4 +129,4 @@
129129
- "{{ cluster_nodes }}"
130130
delegate_to: "{{ cluster_gw_ip | default('localhost') }}"
131131

132-
when: cluster_state != 'absent'
132+
when: cluster_state in ['present', 'query']

0 commit comments

Comments
 (0)