mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-13 03:58:47 +00:00
33 lines
948 B
YAML
33 lines
948 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 paperless_ng
|
|
community.docker.docker_container:
|
|
name: "{{ paperless_ng_uiserver_container_name }}"
|
|
state: absent
|
|
register: result
|
|
|
|
- name: Try and stop and remove paperless_ng db
|
|
community.docker.docker_container:
|
|
name: "{{ paperless_ng_db_container_name }}"
|
|
state: absent
|
|
register: result_db
|
|
|
|
- name: Try and stop and remove paperless_ng redis
|
|
community.docker.docker_container:
|
|
name: "{{ paperless_ng_redis_container_name }}"
|
|
state: absent
|
|
register: result_redis
|
|
|
|
- name: Check if paperless_ng is stopped
|
|
ansible.builtin.assert:
|
|
that:
|
|
- not result.changed
|
|
- not result_db.changed
|
|
- not result_redis.changed
|