Feature: Deploy it-tools through Ansible #15

Merged
claude-bot Bot merged 5 commits from feature/adopt-it-tools-stack into main 2026-11-27 21:10:25 +01:00
2 changed files with 21 additions and 0 deletions
Showing only changes of commit 0289a216ba - Show all commits

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
---
docker_stack_root: "{{ homelab_stacks_root }}"
docker_stack_name: ""
+18
View File
@@ -0,0 +1,18 @@
---
- name: Require a stack name
ansible.builtin.assert:
that:
- docker_stack_name | length > 0
fail_msg: "docker_stack_name must be set"
quiet: true
- name: Copy compose file for {{ docker_stack_name }}
ansible.builtin.copy:
src: "{{ playbook_dir }}/../stacks/{{ docker_stack_name }}/docker-compose.yml"
dest: "{{ docker_stack_root }}/{{ docker_stack_name }}/docker-compose.yml"
mode: "0644"
- name: Start {{ docker_stack_name }}
community.docker.docker_compose_v2:
project_src: "{{ docker_stack_root }}/{{ docker_stack_name }}"
state: present