mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-12 11:38:47 +00:00
25 lines
666 B
YAML
25 lines
666 B
YAML
---
|
|
- name: Verify
|
|
hosts: all
|
|
gather_facts: false
|
|
tasks:
|
|
- ansible.builtin.include_vars:
|
|
file: ../../defaults/main.yml
|
|
|
|
- name: Try and stop and remove Drone CI
|
|
community.docker.docker_container:
|
|
name: "{{ drone_ci_container_name }}"
|
|
state: absent
|
|
register: result
|
|
|
|
- name: Try and stop and remove Drone CI runner
|
|
community.docker.docker_container:
|
|
name: "{{ drone_ci_runner_container_name }}"
|
|
state: absent
|
|
register: result_runner
|
|
|
|
- name: Check Drone CI is stopped
|
|
ansible.builtin.assert:
|
|
that:
|
|
- not result.changed
|
|
- not result_runner.changed
|