ansible-nas/roles/woodpecker-ci/molecule/default/verify.yml

19 lines
524 B
YAML
Raw Normal View History

2023-03-10 21:00:37 +00:00
---
- name: Verify
hosts: all
gather_facts: false
tasks:
2023-04-12 22:22:52 +00:00
- ansible.builtin.include_vars:
2023-03-10 21:00:37 +00:00
file: ../../defaults/main.yml
- name: Get woodpecker_ci container state
community.docker.docker_container:
name: "{{ woodpecker_ci_container_name }}"
register: result
- name: Check if woodpecker_ci containers are running
ansible.builtin.assert:
that:
- result.container['State']['Status'] == "running"
- result.container['State']['Restarting'] == false