initial commit

This commit is contained in:
Ansible Servercow
2024-11-19 16:04:17 +01:00
commit 67c5aae913
26 changed files with 438 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
---
- name: Ensure Docker Compose project is up
community.docker.docker_compose_v2:
project_src: "{{ docker_compose_path }}"
state: present
register: compose_status
- name: Set fact for container status
set_fact:
container_status: "{{ container_status | default({}) | combine({item.Name: (item.State == 'running')}) }}"
verbosity: 0
with_items: "{{ compose_status.containers }}"