浏览代码
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
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有
2 个文件被更改,包括
12 次插入 和
1 次删除
-
roles/matrix-common-after/tasks/main.yml
-
roles/matrix-common-after/tasks/stop.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 |
|
|
|
@@ -0,0 +1,7 @@ |
|
|
|
--- |
|
|
|
|
|
|
|
- name: Ensure Matrix services stopped |
|
|
|
service: |
|
|
|
name: "{{ item }}" |
|
|
|
state: stopped |
|
|
|
with_items: "{{ matrix_systemd_services_list }}" |