diff --git a/meta/main.yml b/meta/main.yml index 3b2f509..c4c064c 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -1,6 +1,6 @@ galaxy_info: author: Tim Unkrig - description: homelab + description: docker install homelab # If the issue tracker for your role is not on github, uncomment the # next line and provide a value @@ -13,7 +13,7 @@ galaxy_info: # - GPL-3.0-only # - Apache-2.0 # - CC-BY-4.0 - license: "MIT" + license: license (GPL-2.0-or-later, MIT, etc) min_ansible_version: "2.8" diff --git a/tasks/main.yml b/tasks/main.yml index be27d76..3fa54a8 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -3,20 +3,20 @@ - name: Create pi-hole directory ansible.builtin.file: - path: "{{ app_dir }}" + path: "{{ pi_hole_app_dir }}" state: directory mode: '0755' - name: Create data directory ansible.builtin.file: - path: "{{ app_dir }}/data" + path: "{{ pi_hole_app_dir }}/data" state: directory mode: '0755' - name: Templating docker-compose.yml ansible.builtin.template: src: files/docker-compose.yaml.j2 - dest: "{{ app_dir }}/docker-compose.yaml" + dest: "{{ pi_hole_app_dir }}/docker-compose.yaml" owner: root group: root mode: '0660' @@ -25,5 +25,5 @@ - name: Start docker-compose community.docker.docker_compose: - project_src: "{{ app_dir }}" + project_src: "{{ pi_hole_app_dir }}" state: present diff --git a/vars/main.yml b/vars/main.yml index d502315..8706bca 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,3 +1,3 @@ --- # vars file for haup.gitea -app_dir: "/srv/pi-hole" \ No newline at end of file +pi_hole_app_dir: "/srv/pi-hole"