2fe0d98ebb
Sometimes as cloud admins, we want to only update code that is running in a cloud. But we dont need to do anything else. Make an action in kolla-ansible that allows us to do that. Change-Id: I904f595c69f7276e71692696471e32fd1f88e6e8 Implements: blueprint deploy-containers-action
20 lines
582 B
YAML
20 lines
582 B
YAML
---
|
|
- name: Deploy horizon container
|
|
vars:
|
|
horizon: "{{ horizon_services['horizon'] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "compare_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ horizon.container_name }}"
|
|
image: "{{ horizon.image }}"
|
|
environment: "{{ horizon.environment }}"
|
|
volumes: "{{ horizon.volumes }}"
|
|
dimensions: "{{ horizon.dimensions }}"
|
|
when:
|
|
- inventory_hostname in groups[horizon.group]
|
|
- horizon.enabled | bool
|
|
with_dict: "{{ horizon_services }}"
|
|
notify:
|
|
- "Restart {{ item.key }} container"
|