ansible-nas/roles/minio/molecule/default/verify.yml
David Stephens bf4d7f9cb4 Add Minio
2023-07-15 19:05:37 +01:00

18 lines
500 B
YAML

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