--- - name: fail if systemd is not present fail: msg: "Systemd must be present" when: ansible_service_mgr != 'systemd'