--- - name: Verify hosts: all gather_facts: false tasks: - name: Include vars 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