aboutsummaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
authorJeffrey Zhang <zhang.lei.fly@gmail.com>2016-09-16 23:28:09 +0800
committerJeffrey Zhang <jeffrey.zhang@99cloud.net>2016-09-17 02:37:37 +0000
commit897fb08bacf3ffd8d2f044c807a7524ff58e6aa6 (patch)
tree3e34f19bdfb60901e8212efdac3bf49bb1f6127b /ansible
parent82c1a3d645c051441715e9e598da07ce94224923 (diff)
downloadkolla-897fb08bacf3ffd8d2f044c807a7524ff58e6aa6.tar.gz
kolla-897fb08bacf3ffd8d2f044c807a7524ff58e6aa6.zip
Fix reconfiguration issue for Keystone role
Closes-Bug: #1624598 Change-Id: If66d82c782e6c8255b94cb00cdf0893630db596c
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/keystone/tasks/do_reconfigure.yml11
1 files changed, 6 insertions, 5 deletions
diff --git a/ansible/roles/keystone/tasks/do_reconfigure.yml b/ansible/roles/keystone/tasks/do_reconfigure.yml
index 2eb6fdba7..7cfeded61 100644
--- a/ansible/roles/keystone/tasks/do_reconfigure.yml
+++ b/ansible/roles/keystone/tasks/do_reconfigure.yml
@@ -19,7 +19,7 @@
register: container_state
failed_when: container_state.Running == false
when: inventory_hostname in groups[item.group]
- with_items: keystone_items
+ with_items: "{{ keystone_items }}"
- include: config.yml
@@ -29,7 +29,7 @@
failed_when: false
register: check_results
when: inventory_hostname in groups[item.group]
- with_items: keystone_items
+ with_items: "{{ keystone_items }}"
# NOTE(jeffrey4l): when config_strategy == 'COPY_ALWAYS'
# and container env['KOLLA_CONFIG_STRATEGY'] == 'COPY_ONCE',
@@ -40,7 +40,8 @@
action: "get_container_env"
register: container_envs
when: inventory_hostname in groups[item.group]
- with_items: keystone_items
+ with_items: "{{ keystone_items }}"
+
- name: Remove the containers
kolla_docker:
@@ -52,7 +53,7 @@
- item[2]['rc'] == 1
- inventory_hostname in groups[item[0]['group']]
with_together:
- - [keystone_items]
+ - "{{ keystone_items }}"
- "{{ container_envs.results }}"
- "{{ check_results.results }}"
@@ -69,6 +70,6 @@
- item[2]['rc'] == 1
- inventory_hostname in groups[item[0]['group']]
with_together:
- - [keystone_items]
+ - "{{ keystone_items }}"
- "{{ container_envs.results }}"
- "{{ check_results.results }}"