feat: add tasks

This commit is contained in:
2025-11-17 15:06:06 +01:00
parent c5925f2a5a
commit 66f09c49bd
6 changed files with 211 additions and 0 deletions

12
tasks/healthcheck.yml Normal file
View File

@@ -0,0 +1,12 @@
---
- name: Wait for Docker daemon to be ready
ansible.builtin.wait_for:
path: /var/run/docker.sock
state: present
timeout: 30
- name: Verify Docker is running and healthy
ansible.builtin.command: docker info
register: docker_health
changed_when: false
failed_when: docker_health.rc != 0