diff --git a/ansible/playbooks/cluster-prepare.yml b/ansible/playbooks/cluster-prepare.yml index 20b97dc4..0ef4d5e9 100644 --- a/ansible/playbooks/cluster-prepare.yml +++ b/ansible/playbooks/cluster-prepare.yml @@ -71,6 +71,10 @@ enabled: false masked: true state: stopped + register: stop_service + failed_when: + - stop_service.failed == true + - '"Could not find the requested service" not in stop_service.msg' - name: System Configuration (1) | Enable fstrim ansible.builtin.systemd: service: fstrim.timer