diff --git a/ansible/inventories/dev/group_vars/main_page.yml b/ansible/inventories/dev/group_vars/main_page.yml index 99e2f5f..db2d16a 100644 --- a/ansible/inventories/dev/group_vars/main_page.yml +++ b/ansible/inventories/dev/group_vars/main_page.yml @@ -34,6 +34,7 @@ hugo_homedir: /opt/hugo hugo_git_repo: https://gitea.cuqmbr.xyz/cuqmbr/cuqmbr.xyz.git hugo_git_commit: 5b894854d47b41996b1901fa257f8c2cad9224f9 hugo_git_refspec: refs/heads/main +hugo_base_url: http://dev.cuqmbr.xyz nginx_settings: server_tokens: false diff --git a/ansible/roles/hugo/defaults/main.yml b/ansible/roles/hugo/defaults/main.yml index 0d00340..f053172 100644 --- a/ansible/roles/hugo/defaults/main.yml +++ b/ansible/roles/hugo/defaults/main.yml @@ -5,3 +5,4 @@ hugo_homedir: /opt/hugo hugo_git_repo: https://gitea.cuqmbr.xyz/cuqmbr/cuqmbr.xyz.git hugo_git_commit: 5b894854d47b41996b1901fa257f8c2cad9224f9 hugo_git_refspec: refs/heads/main +hugo_base_url: https://cuqmbr.xyz diff --git a/ansible/roles/hugo/tasks/main.yml b/ansible/roles/hugo/tasks/main.yml index bc5d89c..b166446 100644 --- a/ansible/roles/hugo/tasks/main.yml +++ b/ansible/roles/hugo/tasks/main.yml @@ -47,7 +47,7 @@ - name: Build hugo site. ansible.builtin.shell: chdir: "{{ hugo_source }}" - cmd: "hugo -d {{ hugo_compiled }}" + cmd: "hugo -b {{ hugo_base_url }} -d {{ hugo_compiled }}" - name: Create hugo site deployment directory. ansible.builtin.file: