1
0

add base_url variable to hugo role

This commit is contained in:
cuqmbr 2025-06-29 11:38:10 +03:00
parent 286005e014
commit bed64e1256
Signed by: cuqmbr
GPG Key ID: 0AA446880C766199
3 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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: