ansible-nas/roles/cloudcmd/molecule/default/verify_stopped.yml
2023-04-12 23:22:52 +01:00

18 lines
380 B
YAML

---
- name: Verify
hosts: all
gather_facts: false
tasks:
- include_vars:
file: ../../defaults/main.yml
- name: Try and stop and remove Cloudcmd
docker_container:
name: "{{ cloudcmd_container_name }}"
state: absent
register: result
- name: Check Cloudcmd is stopped
assert:
that:
- not result.changed