ansible-nas/roles/heimdall/molecule/default/verify.yml

21 lines
547 B
YAML
Raw Normal View History

2022-09-10 11:38:26 +00:00
---
# This is an example playbook to execute Ansible tests.
- name: Verify
hosts: all
gather_facts: false
tasks:
2023-04-12 22:29:29 +00:00
- ansible.builtin.include_vars:
2022-09-11 16:33:19 +00:00
file: ../../defaults/main.yml
2022-09-10 11:38:26 +00:00
- name: Get container state
2023-04-15 13:11:49 +00:00
community.docker.docker_container_info:
2022-09-11 16:33:19 +00:00
name: "{{ heimdall_container_name }}"
2022-09-10 11:38:26 +00:00
register: result
- name: Check Heimdall is running
2023-04-12 22:29:29 +00:00
ansible.builtin.assert:
2022-09-10 11:38:26 +00:00
that:
- result.container['State']['Status'] == "running"
- result.container['State']['Restarting'] == false