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

20 lines
495 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
include_vars:
file: ../../defaults/main.yml
- name: Get krusader container state
docker_container_info:
name: "{{ krusader_container_name }}"
register: result
- name: Check if krusader docker container is running
assert:
that:
- result.container['State']['Status'] == "running"
- result.container['State']['Restarting'] == false