Files
@ 81902625d067
Branch filter:
Location: freifunk/Ansible-Configuration/web/tasks/hugo.yml - annotation
81902625d067
838 B
text/x-yaml
feat: update hugo to v.0.121 from v0.119
9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 81902625d067 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c 9a7bb723141c | ---
# Setup the Hugo website
- name: "Get package facts"
package_facts:
manager: "apt"
- name: "Install Hugo"
ansible.builtin.apt:
deb: "https://github.com/gohugoio/hugo/releases/download/v0.121.1/hugo_extended_0.121.1_linux-amd64.deb"
state: present
become: true
when: "'hugo' not in ansible_facts.packages"
- name: "Make sure repos directory exists"
ansible.builtin.file:
path: "~/repos"
state: directory
become: true
become_user: fflux
- name: "Clone website repo"
ansible.builtin.git:
repo: "ssh://kallithea@projects.c3l.lu/freifunk/web/website"
dest: "/home/fflux/repos/website"
version: "main"
become: true
become_user: fflux
- name: "Build the website"
ansible.builtin.command:
chdir: "/home/fflux/repos/website"
cmd: "hugo --minify"
become: true
become_user: fflux
|