fixed syntax

This commit is contained in:
2023-10-27 17:18:24 +02:00
parent cb8b7b9897
commit 55ffe1a19f
3 changed files with 7 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
galaxy_info: galaxy_info:
author: Tim Unkrig author: Tim Unkrig
description: homelab description: docker install homelab
# If the issue tracker for your role is not on github, uncomment the # If the issue tracker for your role is not on github, uncomment the
# next line and provide a value # next line and provide a value
@@ -13,7 +13,7 @@ galaxy_info:
# - GPL-3.0-only # - GPL-3.0-only
# - Apache-2.0 # - Apache-2.0
# - CC-BY-4.0 # - CC-BY-4.0
license: "MIT" license: license (GPL-2.0-or-later, MIT, etc)
min_ansible_version: "2.8" min_ansible_version: "2.8"

View File

@@ -3,20 +3,20 @@
- name: Create pi-hole directory - name: Create pi-hole directory
ansible.builtin.file: ansible.builtin.file:
path: "{{ app_dir }}" path: "{{ pi_hole_app_dir }}"
state: directory state: directory
mode: '0755' mode: '0755'
- name: Create data directory - name: Create data directory
ansible.builtin.file: ansible.builtin.file:
path: "{{ app_dir }}/data" path: "{{ pi_hole_app_dir }}/data"
state: directory state: directory
mode: '0755' mode: '0755'
- name: Templating docker-compose.yml - name: Templating docker-compose.yml
ansible.builtin.template: ansible.builtin.template:
src: files/docker-compose.yaml.j2 src: files/docker-compose.yaml.j2
dest: "{{ app_dir }}/docker-compose.yaml" dest: "{{ pi_hole_app_dir }}/docker-compose.yaml"
owner: root owner: root
group: root group: root
mode: '0660' mode: '0660'
@@ -25,5 +25,5 @@
- name: Start docker-compose - name: Start docker-compose
community.docker.docker_compose: community.docker.docker_compose:
project_src: "{{ app_dir }}" project_src: "{{ pi_hole_app_dir }}"
state: present state: present

View File

@@ -1,3 +1,3 @@
--- ---
# vars file for haup.gitea # vars file for haup.gitea
app_dir: "/srv/pi-hole" pi_hole_app_dir: "/srv/pi-hole"