chore: base config and deployment for role homarr

This commit is contained in:
Tobias Wüst 2026-01-23 15:45:59 +01:00
parent 129121f3f2
commit ece5b4ccf9
Signed by: Tobias-Wuest
GPG key ID: 2D8992B0F4CA97E8
3 changed files with 69 additions and 2 deletions

View file

@ -1,3 +1,19 @@
#SPDX-License-Identifier: MIT-0
---
# tasks file for homarr
# tasks file for homarr
- name: Create docker compose directory
file:
path: "{{ homarr_docker_compose_dir }}"
state: directory
mode: '0755'
- name: Create docker-compose file for homarr
template:
src: docker-compose.yml.j2
dest: "{{ homarr_docker_compose_dir }}/docker-compose.yml"
mode: '0644'
- name: Start homarr containers
community.docker.docker_compose_v2:
project_src: "{{ homarr_docker_compose_dir }}"
state: present