From 8721ca35d8b270c02061070170124d907887805f Mon Sep 17 00:00:00 2001 From: LinPeiWen <591171850@qq.com> Date: Thu, 26 Mar 2020 08:58:54 -0400 Subject: [PATCH] kolla-toolbox container name variable kolla-toolbox container name variable is fixed in some places, but in the defaults directory, kolla-toolbox container_name variable is variable. If the kolla-toolbox container_name variable is changed during deployment, it will not be assigned to kolla-toolbox, but a fixed 'kolla-toolbox' name. Change-Id: I9579017761ff47477dba597282be9ae6fab4242a --- ansible/roles/common/handlers/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/common/handlers/main.yml b/ansible/roles/common/handlers/main.yml index 0cffc22713..2b31f969f0 100644 --- a/ansible/roles/common/handlers/main.yml +++ b/ansible/roles/common/handlers/main.yml @@ -36,7 +36,7 @@ - name: Initializing toolbox container using normal user become: true - command: docker exec -t kolla_toolbox ansible --version + command: docker exec -t "{{ common_services['kolla-toolbox']['container_name'] }}" ansible --version changed_when: false - name: Restart cron container