--- - 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 netbootxyz community.docker.docker_container: name: "{{ netbootxyz_container_name }}" state: absent register: result - name: Check if netbootxyz is stopped ansible.builtin.assert: that: - not result.changed