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
This commit is contained in:
LinPeiWen 2020-03-26 08:58:54 -04:00
parent 8a206699d4
commit 8721ca35d8

View File

@ -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