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 d4928df..8078a7a 100644 --- a/inventories/vagrant/host_vars/backend/traefik.yml +++ b/inventories/vagrant/host_vars/backend/traefik.yml @@ -24,6 +24,10 @@ traefik_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.ini b/inventories/vagrant/hosts.ini index fcea02f..6c85846 100644 --- a/inventories/vagrant/hosts.ini +++ b/inventories/vagrant/hosts.ini @@ -42,4 +42,7 @@ backend backend [nextcloud_servers] +backend + +[homarr_servers] 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