Pin hugo version

This commit is contained in:
Wojciech Kozlowski 2022-10-02 15:16:17 +02:00
parent 9393e7a79c
commit e44346975e
2 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,3 @@
Package: hugo
Pin: version {{ hugo_version }}
Pin-Priority: 999

View File

@ -7,10 +7,17 @@
- name: Install hugo
become_user: root
apt:
deb: https://github.com/gohugoio/hugo/releases/download/v0.56.0/hugo_extended_0.56.0_Linux-64bit.deb
deb: https://github.com/gohugoio/hugo/releases/download/v{{ hugo_version }}/hugo_extended_{{ hugo_version }}_Linux-64bit.deb
when:
not hugo_path.stat.exists
- name: Pin hugo version
become_user: root
template:
src: "./filesystem/{{ ansible_hostname }}/etc/apt/preferences.d/hugo.j2"
dest: "/etc/apt/preferences.d/hugo"
mode: 0644
- name: Clone website repository
git:
repo: https://gitlab.wojciechkozlowski.eu/wojtek/wojciechkozlowski.eu.git
@ -26,3 +33,5 @@
wojciechkozlowski_eu_git is changed
become_user: "{{ service_user_name }}"
vars:
hugo_version: "0.56.0"