add base_url variable to hugo role
This commit is contained in:
parent
286005e014
commit
bed64e1256
@ -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
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user