mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-13 12:08:53 +00:00
20 lines
448 B
YAML
20 lines
448 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 mylar
|
||
|
community.docker.docker_container:
|
||
|
name: "{{ mylar_container_name }}"
|
||
|
state: absent
|
||
|
register: result
|
||
|
|
||
|
- name: Check if mylar is stopped
|
||
|
ansible.builtin.assert:
|
||
|
that:
|
||
|
- not result.changed
|