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

19 lines
534 B
YAML

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