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

25 lines
600 B
YAML

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