mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-14 04:23:56 +00:00
27 lines
668 B
YAML
27 lines
668 B
YAML
|
---
|
||
|
- name: Verify
|
||
|
hosts: all
|
||
|
gather_facts: false
|
||
|
tasks:
|
||
|
- name: Include vars
|
||
|
ansible.builtin.include_vars:
|
||
|
file: ../../defaults/main.yml
|
||
|
|
||
|
- name: Try and stop and remove joomla
|
||
|
community.docker.docker_container:
|
||
|
name: "{{ joomla_container_name }}"
|
||
|
state: absent
|
||
|
register: result
|
||
|
|
||
|
- name: Try and stop and remove joomla db
|
||
|
community.docker.docker_container:
|
||
|
name: "{{ joomla_db_container_name }}"
|
||
|
state: absent
|
||
|
register: result_db
|
||
|
|
||
|
- name: Check if joomla is stopped
|
||
|
ansible.builtin.assert:
|
||
|
that:
|
||
|
- not result.changed
|
||
|
- not result_db.changed
|