Преглед изворни кода

Add a task to stop services (and remove containers)

pull/178/head
Marcel Partap пре 7 година
родитељ
комит
d114736014
2 измењених фајлова са 12 додато и 1 уклоњено
  1. +5
    -1
      roles/matrix-common-after/tasks/main.yml
  2. +7
    -0
      roles/matrix-common-after/tasks/stop.yml

+ 5
- 1
roles/matrix-common-after/tasks/main.yml Прегледај датотеку

@@ -1,4 +1,8 @@
- import_tasks: "{{ role_path }}/tasks/start.yml"
when: run_start
tags:
- start
- start

- import_tasks: "{{ role_path }}/tasks/stop.yml"
tags:
- stop

+ 7
- 0
roles/matrix-common-after/tasks/stop.yml Прегледај датотеку

@@ -0,0 +1,7 @@
---

- name: Ensure Matrix services stopped
service:
name: "{{ item }}"
state: stopped
with_items: "{{ matrix_systemd_services_list }}"

Loading…
Откажи
Сачувај