Fix corner-cases found through testing (aka ansible is nuts)

This commit is contained in:
Marcel Partap
2020-04-19 10:16:01 +02:00
parent a14b9c09ad
commit cf452fdf0a
3 changed files with 11 additions and 5 deletions

View File

@@ -12,8 +12,9 @@
path: "{{ item.root + '/' + item.path }}"
state: absent
when:
- matrix_synapse_workers_enabled|bool
- item.state == 'link'
- item.path is match('matrix-synapse-worker@*.service')
- item.path is match('matrix-synapse-worker@.*\\.service')
with_filetree:
- "{{ matrix_systemd_path }}/matrix-synapse.service.wants"