mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-12 19:48:47 +00:00
18 lines
417 B
YAML
18 lines
417 B
YAML
---
|
|
- name: Verify
|
|
hosts: all
|
|
gather_facts: false
|
|
tasks:
|
|
- ansible.builtin.include_vars:
|
|
file: ../../defaults/main.yml
|
|
|
|
- name: Try and stop and remove znc
|
|
community.docker.docker_container:
|
|
name: "{{ znc_container_name }}"
|
|
state: absent
|
|
register: result
|
|
|
|
- name: Check if znc is stopped
|
|
ansible.builtin.assert:
|
|
that:
|
|
- not result.changed
|