diff --git a/inventories/vagrant/host_vars/backend/homarr.yml b/inventories/vagrant/host_vars/backend/homarr.yml new file mode 100644 index 0000000..6244c57 --- /dev/null +++ b/inventories/vagrant/host_vars/backend/homarr.yml @@ -0,0 +1,11 @@ +homarr_domain: "home.local.test" + +homarr_secret_dir: "{{ playbook_dir }}/secrets/{{ inventory_hostname }}" +homarr_secret_file: "homarr_secret_encryption_key" +homarr_secret_length: 64 + +homarr_secret_encryption_key: >- + {{ lookup('ansible.builtin.password', + homarr_secret_dir ~ '/' ~ homarr_secret_file, + length=homarr_secret_length, + chars='hexdigits') }} diff --git a/inventories/vagrant/host_vars/backend/traefik.yml b/inventories/vagrant/host_vars/backend/traefik.yml index 5aa720e..3e1e5b7 100644 --- a/inventories/vagrant/host_vars/backend/traefik.yml +++ b/inventories/vagrant/host_vars/backend/traefik.yml @@ -24,6 +24,10 @@ traefik_dmz_exposed_services: domain: authentik.local.test port: 443 protocol: https + - name: homarr + domain: home.local.test + port: 443 + protocol: https # Example: Add more services as you deploy them # - name: forgejo # domain: git.example.com diff --git a/inventories/vagrant/hosts.yml b/inventories/vagrant/hosts.yml index e3bf998..5f438b8 100644 --- a/inventories/vagrant/hosts.yml +++ b/inventories/vagrant/hosts.yml @@ -58,5 +58,9 @@ all: backend: nextcloud_servers: + hosts: + backend: + + homarr_servers: hosts: backend: \ No newline at end of file diff --git a/playbooks/site.yml b/playbooks/site.yml index ffbb9c4..8749439 100644 --- a/playbooks/site.yml +++ b/playbooks/site.yml @@ -41,6 +41,12 @@ roles: - digitalboard.core.authentik +- name: Deploy homarr service + hosts: homarr_servers + become: yes + roles: + - digitalboard.core.homarr + - name: Configure reverse proxy on DMZ servers hosts: traefik_servers_dmz become: yes