ansible-nas/roles/firefly/molecule/default/verify_stopped.yml
2022-09-12 23:27:44 +01:00

25 lines
591 B
YAML

---
- name: Verify
hosts: all
gather_facts: false
tasks:
- include_vars:
file: ../../defaults/main.yml
- name: Try and stop and remove Firefly
docker_container:
name: "{{ firefly_container_name }}"
state: absent
register: result
- name: Try and stop and remove Firefly MySql
docker_container:
name: "{{ firefly_mysql_container_name }}"
state: absent
register: result_mysql
- name: Check Firefly is stopped
assert:
that:
- not result.changed
- not result_mysql.changed