--- - name: Verify hosts: all tasks: - name: Populate service facts ansible.builtin.service_facts: - name: Check if infinispan service started assert: that: - ansible_facts.services["keycloak.service"]["state"] == "running"