Add a task to stop services (and remove containers)

This commit is contained in:
Marcel Partap 2019-05-14 11:46:07 +02:00
parent 873c291be6
commit d114736014
2 changed files with 12 additions and 1 deletions

View file

@ -2,3 +2,7 @@
when: run_start when: run_start
tags: tags:
- start - start
- import_tasks: "{{ role_path }}/tasks/stop.yml"
tags:
- stop

View file

@ -0,0 +1,7 @@
---
- name: Ensure Matrix services stopped
service:
name: "{{ item }}"
state: stopped
with_items: "{{ matrix_systemd_services_list }}"