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

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