ソースを参照

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

Add a task to stop services (and remove containers)
pull/180/head
Slavi Pantaleev 7年前
committed by GitHub
コミット
83e250936b
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
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 }}"

読み込み中…
キャンセル
保存