ansible-nas/roles/bitwarden/molecule/default/verify_stopped.yml

26 lines
605 B
YAML
Raw Normal View History

2022-09-11 17:23:58 +00:00
---
- name: Verify
hosts: all
gather_facts: false
tasks:
- include_vars:
file: ../../defaults/main.yml
- name: Try and stop and remove Bitwarden
docker_container:
name: "{{ bitwarden_container_name }}"
state: absent
register: result
- name: Try and stop and remove Bitwarden Backup
docker_container:
name: "{{ bitwarden_backup_container_name }}"
state: absent
register: result_backup
- name: Check Bitwarden is stopped
assert:
that:
- not result.changed
- not result_backup.changed