Add common_options to keystone container check

keystone_* containers are created via the kolla_docker ansible module
with common_options set to docker_common_options. However, when the
containers are checked, common_options are not passed to the
kolla_docker ansible module. This can cause the keystone_* containers
to be restarted during a reconfigure when there are no changes to
keystone configuration.

Add the common_options argument to the kolla_docker ansible module when
checking the keystone containers and set it to docker_common_options.

Change-Id: I44aefcf3d71faecaf1ffe384fd5a2f611e584a37
Closes-Bug: #1759922
(cherry picked from commit 735012c4bb)
This commit is contained in:
Martin Chlumsky 2018-03-29 16:45:31 -04:00
parent 36c070a3f1
commit 4c1972200f
1 changed files with 1 additions and 0 deletions

View File

@ -190,6 +190,7 @@
- name: Check keystone containers
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"
name: "{{ item.value.container_name }}"
image: "{{ item.value.image }}"
volumes: "{{ item.value.volumes|reject('equalto', '')|list }}"