Fix failure trying to stop orphaned systemd services

Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1461
development
Slavi Pantaleev 3 years ago
parent 067bea25a8
commit 4625b34acc

@ -8,6 +8,7 @@
name: "{{ item.key }}"
state: stopped
with_dict: "{{ ansible_facts.services|default({})|dict2items|selectattr('key', 'match', 'matrix-synapse-worker-.+\\.service')|list|items2dict }}"
when: "item.value['status'] != 'not-found'" # see https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1461
- name: Find worker configs to be cleaned
find:

Loading…
Cancel
Save