소스 검색

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
No known key found for this signature in database 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 }}"

불러오는 중...
취소
저장