add docker role, convert codeserver
All checks were successful
Deploy Containers / Prepare (push) Successful in 24s

This commit is contained in:
2025-11-19 16:36:15 -05:00
parent 57efba5cb3
commit a8e6ed70ab
2 changed files with 38 additions and 19 deletions

View File

@@ -0,0 +1,28 @@
---
- name: Create folder structure
file:
path: "{{ item }}"
state: directory
with_items: "{{ directories }}"
- name: Pull latest Docker image
docker_image:
name: "{{ image.name }}"
tag: "{{ image.tag }}"
source: pull
- name: Create Docker Network
docker_network:
name: "{{ network_name }}"
when: network_name is defined
- name: Create Docker Container
docker_container:
name: "{{ name }}"
image: "{{ image.name }}:{{ image.tag }}"
recreate: true
restart_policy: unless-stopped
networks: "{{ networks }}"
volumes: "{{ volumes }}"
env: "{{ env }}"
labels: "{{ labels }}"