ansible-nas/roles/firefly/molecule/default/verify_stopped.yml
David Stephens 14b386ed14 Use FQCNs
2023-04-12 23:29:29 +01:00

25 lines
623 B
YAML

---
- name: Verify
hosts: all
gather_facts: false
tasks:
- ansible.builtin.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
ansible.builtin.assert:
that:
- not result.changed
- not result_mysql.changed