kolla-ansible/ansible/roles/service-stop/tasks/main.yml
Eduardo Gonzalez 1a682fab28 Support stop specific containers
With this change, an operator may be able to stop a
service container without stopping all services in a host.
This change is the starting point to start
fast-forward upgrades support.
In next changes new flags will be introducced to disable
stop dataplane services during upgrades.

Change-Id: Ifde7a39d7d8596ef0d7405ecf1ac1d49a459d9ef
Implements: blueprint support-stop-containers
2018-11-26 08:07:01 +00:00

13 lines
361 B
YAML

---
- name: "Stopping {{ service_name }} containers"
vars:
service: "{{ item.value }}"
kolla_docker:
action: "stop_container"
common_options: "{{ docker_common_options }}"
name: "{{ service.container_name }}"
when:
- service.enabled | bool
- service.container_name not in skip_stop_containers
with_dict: "{{ project_services }}"