2023-03-09 20:47:42 +00:00
|
|
|
---
|
|
|
|
- name: Verify
|
|
|
|
hosts: all
|
|
|
|
gather_facts: false
|
|
|
|
tasks:
|
|
|
|
- name: Include vars
|
|
|
|
ansible.builtin.include_vars:
|
|
|
|
file: ../../defaults/main.yml
|
|
|
|
|
2023-03-10 13:18:19 +00:00
|
|
|
- name: Try and stop and remove paperless_ng
|
2023-03-09 20:47:42 +00:00
|
|
|
community.docker.docker_container:
|
2023-03-10 13:18:19 +00:00
|
|
|
name: "{{ paperless_ng_uiserver_container_name }}"
|
2023-03-09 20:47:42 +00:00
|
|
|
state: absent
|
|
|
|
register: result
|
|
|
|
|
2023-03-10 13:18:19 +00:00
|
|
|
- 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
|
2023-03-09 20:47:42 +00:00
|
|
|
ansible.builtin.assert:
|
|
|
|
that:
|
|
|
|
- not result.changed
|
2023-03-10 13:18:19 +00:00
|
|
|
- not result_db.changed
|
|
|
|
- not result_redis.changed
|