3
0
mirror of https://github.com/spantaleev/matrix-docker-ansible-deploy.git synced 2026-01-16 04:45:19 +00:00

sync with previous repo

This commit is contained in:
Michael Collins
2021-08-13 16:05:57 +08:00
parent 83a90f1cd1
commit 98e6cd685d
641 changed files with 43857 additions and 55 deletions

View File

@@ -0,0 +1,24 @@
---
- name: Check existence of matrix-mx-puppet-slack service
stat:
path: "/etc/systemd/system/matrix-mx-puppet-slack.service"
register: matrix_mx_puppet_slack_service_stat
- name: Ensure matrix-mx-puppet-slack is stopped
service:
name: matrix-mx-puppet-slack
state: stopped
daemon_reload: yes
when: "matrix_mx_puppet_slack_service_stat.stat.exists"
- name: Ensure matrix-mx-puppet-slack.service doesn't exist
file:
path: "/etc/systemd/system/matrix-mx-puppet-slack.service"
state: absent
when: "matrix_mx_puppet_slack_service_stat.stat.exists"
- name: Ensure systemd reloaded after matrix-mx-puppet-slack.service removal
service:
daemon_reload: yes
when: "matrix_mx_puppet_slack_service_stat.stat.exists"