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

20 lines
528 B
YAML
Raw Normal View History

2023-03-09 20:47:42 +00:00
---
- name: Verify
hosts: all
gather_facts: false
tasks:
- name: Include vars
ansible.builtin.include_vars:
file: ../../defaults/main.yml
- name: Get lidarr container state
community.docker.docker_container:
name: "{{ lidarr_container_name }}"
register: result
- name: Check if lidarr containers are running
ansible.builtin.assert:
that:
- result.container['State']['Status'] == "running"
- result.container['State']['Restarting'] == false