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

19 lines
442 B
YAML
Raw Normal View History

2023-03-09 20:47:42 +00:00
---
- name: Verify
hosts: all
gather_facts: false
tasks:
2023-04-12 22:29:29 +00:00
- ansible.builtin.include_vars:
2023-03-09 20:47:42 +00:00
file: ../../defaults/main.yml
- name: Try and stop and remove krusader
2023-04-15 13:11:49 +00:00
community.docker.docker_container:
2023-03-09 20:47:42 +00:00
name: "{{ krusader_container_name }}"
state: absent
register: result
- name: Check if krusader container is stopped
2023-04-12 22:29:29 +00:00
ansible.builtin.assert:
2023-03-09 20:47:42 +00:00
that:
- not result.changed