ansible-keycloak/molecule/default/verify.yml

12 lines
358 B
YAML
Raw Normal View History

---
- name: Verify
hosts: all
tasks:
- name: Populate service facts
ansible.builtin.service_facts:
- name: Check if keycloak service started
2022-02-24 14:00:10 +00:00
ansible.builtin.assert:
that:
- ansible_facts.services["keycloak.service"]["state"] == "running"
- ansible_facts.services["keycloak.service"]["status"] == "enabled"