add refspec configuration in hugo role
This commit is contained in:
parent
ba6507e57c
commit
286005e014
@ -33,6 +33,7 @@ hugo_version: 0.147.9
|
|||||||
hugo_homedir: /opt/hugo
|
hugo_homedir: /opt/hugo
|
||||||
hugo_git_repo: https://gitea.cuqmbr.xyz/cuqmbr/cuqmbr.xyz.git
|
hugo_git_repo: https://gitea.cuqmbr.xyz/cuqmbr/cuqmbr.xyz.git
|
||||||
hugo_git_commit: 5b894854d47b41996b1901fa257f8c2cad9224f9
|
hugo_git_commit: 5b894854d47b41996b1901fa257f8c2cad9224f9
|
||||||
|
hugo_git_refspec: refs/heads/main
|
||||||
|
|
||||||
nginx_settings:
|
nginx_settings:
|
||||||
server_tokens: false
|
server_tokens: false
|
||||||
|
@ -4,3 +4,4 @@ hugo_version: 0.147.9
|
|||||||
hugo_homedir: /opt/hugo
|
hugo_homedir: /opt/hugo
|
||||||
hugo_git_repo: https://gitea.cuqmbr.xyz/cuqmbr/cuqmbr.xyz.git
|
hugo_git_repo: https://gitea.cuqmbr.xyz/cuqmbr/cuqmbr.xyz.git
|
||||||
hugo_git_commit: 5b894854d47b41996b1901fa257f8c2cad9224f9
|
hugo_git_commit: 5b894854d47b41996b1901fa257f8c2cad9224f9
|
||||||
|
hugo_git_refspec: refs/heads/main
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
depth: 1
|
depth: 1
|
||||||
dest: "{{ hugo_source }}"
|
dest: "{{ hugo_source }}"
|
||||||
version: "{{ hugo_git_commit }}"
|
version: "{{ hugo_git_commit }}"
|
||||||
|
refspec: "{{ hugo_git_refspec }}"
|
||||||
|
|
||||||
- name: Create hugo site build directory.
|
- name: Create hugo site build directory.
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
Loading…
Reference in New Issue
Block a user