More ansible-lint fixes
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: Check existence of matrix-client-cinny.service
|
||||
stat:
|
||||
ansible.builtin.stat:
|
||||
path: "{{ matrix_systemd_path }}/matrix-client-cinny.service"
|
||||
register: matrix_client_cinny_service_stat
|
||||
|
||||
@ -11,18 +11,18 @@
|
||||
enabled: false
|
||||
daemon_reload: true
|
||||
register: stopping_result
|
||||
when: "matrix_client_cinny_service_stat.stat.exists|bool"
|
||||
when: "matrix_client_cinny_service_stat.stat.exists | bool"
|
||||
|
||||
- name: Ensure matrix-client-cinny.service doesn't exist
|
||||
ansible.builtin.file:
|
||||
path: "{{ matrix_systemd_path }}/matrix-client-cinny.service"
|
||||
state: absent
|
||||
when: "matrix_client_cinny_service_stat.stat.exists|bool"
|
||||
when: "matrix_client_cinny_service_stat.stat.exists | bool"
|
||||
|
||||
- name: Ensure systemd reloaded after matrix-client-cinny.service removal
|
||||
ansible.builtin.service:
|
||||
daemon_reload: true
|
||||
when: "matrix_client_cinny_service_stat.stat.exists|bool"
|
||||
when: "matrix_client_cinny_service_stat.stat.exists | bool"
|
||||
|
||||
- name: Ensure Cinny paths doesn't exist
|
||||
ansible.builtin.file:
|
||||
|
Reference in New Issue
Block a user