2022-09-12 22:27:44 +00:00
|
|
|
---
|
|
|
|
- name: Verify
|
|
|
|
hosts: all
|
|
|
|
gather_facts: false
|
|
|
|
tasks:
|
2023-04-12 22:29:29 +00:00
|
|
|
- ansible.builtin.include_vars:
|
2022-09-12 22:27:44 +00:00
|
|
|
file: ../../defaults/main.yml
|
|
|
|
|
|
|
|
- name: Try and stop and remove Firefly
|
2023-04-15 13:11:49 +00:00
|
|
|
community.docker.docker_container:
|
2022-09-12 22:27:44 +00:00
|
|
|
name: "{{ firefly_container_name }}"
|
|
|
|
state: absent
|
|
|
|
register: result
|
|
|
|
|
|
|
|
- name: Try and stop and remove Firefly MySql
|
2023-04-15 13:11:49 +00:00
|
|
|
community.docker.docker_container:
|
2022-09-12 22:27:44 +00:00
|
|
|
name: "{{ firefly_mysql_container_name }}"
|
|
|
|
state: absent
|
|
|
|
register: result_mysql
|
|
|
|
|
|
|
|
- name: Check Firefly is stopped
|
2023-04-12 22:29:29 +00:00
|
|
|
ansible.builtin.assert:
|
2022-09-12 22:27:44 +00:00
|
|
|
that:
|
|
|
|
- not result.changed
|
|
|
|
- not result_mysql.changed
|