--- - name: Testing result after role re-run hosts: service_hosts tasks: - name: Ensure the absent service is missing ansible.builtin.stat: path: "/etc/haproxy/conf.d/test_absent_service" register: absent_services failed_when: absent_services.stat.exists