ansible-nas/roles/code-server/molecule/default/verify.yml

19 lines
447 B
YAML
Raw Normal View History

2022-09-12 22:27:44 +00:00
---
- name: Verify
hosts: all
gather_facts: false
tasks:
2023-04-12 22:22:52 +00:00
- include_vars:
2022-09-12 22:27:44 +00:00
file: ../../defaults/main.yml
- name: Get container state
docker_container_info:
name: "{{ code_server_container_name }}"
register: result
- name: Check Code Server is running
assert:
that:
- result.container['State']['Status'] == "running"
- result.container['State']['Restarting'] == false