You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
832 B
25 lines
832 B
4 years ago
|
---
|
||
|
|
||
4 years ago
|
- name: Check existence of matrix-mautrix-twitter service
|
||
2 years ago
|
ansible.builtin.stat:
|
||
4 years ago
|
path: "{{ matrix_systemd_path }}/matrix-mautrix-twitter.service"
|
||
|
register: matrix_mautrix_twitter_service_stat
|
||
4 years ago
|
|
||
4 years ago
|
- name: Ensure matrix-mautrix-twitter is stopped
|
||
2 years ago
|
ansible.builtin.service:
|
||
4 years ago
|
name: matrix-mautrix-twitter
|
||
4 years ago
|
state: stopped
|
||
3 years ago
|
daemon_reload: true
|
||
4 years ago
|
when: "matrix_mautrix_twitter_service_stat.stat.exists"
|
||
4 years ago
|
|
||
4 years ago
|
- name: Ensure matrix-mautrix-twitter.service doesn't exist
|
||
2 years ago
|
ansible.builtin.file:
|
||
4 years ago
|
path: "{{ matrix_systemd_path }}/matrix-mautrix-twitter.service"
|
||
4 years ago
|
state: absent
|
||
4 years ago
|
when: "matrix_mautrix_twitter_service_stat.stat.exists"
|
||
4 years ago
|
|
||
4 years ago
|
- name: Ensure systemd reloaded after matrix-mautrix-twitter.service removal
|
||
2 years ago
|
ansible.builtin.service:
|
||
3 years ago
|
daemon_reload: true
|
||
4 years ago
|
when: "matrix_mautrix_twitter_service_stat.stat.exists"
|