ansible-nas/roles/prowlarr/molecule/default/verify.yml
2023-03-10 16:40:33 +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 prowlarr container state
community.docker.docker_container:
name: "{{ prowlarr_container_name }}"
register: result
- name: Check if prowlarr containers are running
ansible.builtin.assert:
that:
- result.container['State']['Status'] == "running"
- result.container['State']['Restarting'] == false