From fdb325aba6ad4a7ec5d0281918571909dbb8fd82 Mon Sep 17 00:00:00 2001 From: Simon Piette Date: Fri, 4 May 2018 14:33:45 -0400 Subject: [PATCH] add the environment attribute to etcd deploy In ansible/roles/etcd/tasks/config.yml, the kolla_docker compare_container action doesn't check environment. Once a container is created, it won't get recreated if only the environment change. This commit add the environment attribute to the kolla_docker action in etcd role Change-Id: I8fb71cc945867e06acc67f6d1256bf62f4276206 Closes-Bug: #1765517 --- ansible/roles/etcd/tasks/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/etcd/tasks/config.yml b/ansible/roles/etcd/tasks/config.yml index daa3caa442..7c8725e94f 100644 --- a/ansible/roles/etcd/tasks/config.yml +++ b/ansible/roles/etcd/tasks/config.yml @@ -33,6 +33,7 @@ name: "{{ item.value.container_name }}" image: "{{ item.value.image }}" volumes: "{{ item.value.volumes }}" + environment: "{{ item.value.environment }}" register: check_etcd_containers when: - action != "config"