2021-12-14 10:26:42 +00:00
|
|
|
---
|
|
|
|
- name: Verify
|
|
|
|
hosts: all
|
|
|
|
tasks:
|
|
|
|
- name: Populate service facts
|
|
|
|
ansible.builtin.service_facts:
|
2021-12-15 11:33:42 +00:00
|
|
|
- name: Check if keycloak service started
|
2022-02-24 14:00:10 +00:00
|
|
|
ansible.builtin.assert:
|
2021-12-14 10:26:42 +00:00
|
|
|
that:
|
|
|
|
- ansible_facts.services["keycloak.service"]["state"] == "running"
|
2022-03-24 18:00:30 +00:00
|
|
|
- ansible_facts.services["keycloak.service"]["status"] == "enabled"
|