ansible-nas/roles/timemachine/molecule/default/verify.yml
2023-03-10 22:00:37 +01:00

19 lines
543 B
YAML

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