瀏覽代碼

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 Key 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 }}"

Loading…
取消
儲存