ansible-nas/roles/openhab/molecule/default/verify.yml
2023-03-09 21:47:42 +01:00

19 lines
531 B
YAML

---
- name: Verify
hosts: all
gather_facts: false
tasks:
- name: Include vars
ansible.builtin.include_vars:
file: ../../defaults/main.yml
- name: Get openhab container state
community.docker.docker_container:
name: "{{ openhab_container_name }}"
register: result
- name: Check if openhab containers are running
ansible.builtin.assert:
that:
- result.container['State']['Status'] == "running"
- result.container['State']['Restarting'] == false