ansible-nas/roles/piwigo/molecule/default/verify_stopped.yml
2023-04-12 23:22:52 +01:00

25 lines
643 B
YAML

---
- name: Verify
hosts: all
gather_facts: false
tasks:
- ansible.builtin.include_vars:
file: ../../defaults/main.yml
- name: Try and stop and remove piwigo
community.docker.docker_container:
name: "{{ piwigo_container_name }}"
state: absent
register: result
- name: Try and stop and remove piwigo db
community.docker.docker_container:
name: "{{ piwigo_db_container_name }}"
state: absent
register: result_db
- name: Check if piwigo is stopped
ansible.builtin.assert:
that:
- not result.changed
- not result_db.changed