Merge pull request #178 from eMPee584/add-service-stop

Add a task to stop services (and remove containers)
This commit is contained in:
Slavi Pantaleev 2019-05-14 19:00:47 +09:00 committed by GitHub
commit 83e250936b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View file

@ -2,3 +2,7 @@
when: run_start
tags:
- 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 }}"