From 9457306a881cfe476ee0abbdba4f6f1eaa80db9d Mon Sep 17 00:00:00 2001 From: heqnx Date: Sat, 5 Jul 2025 12:21:29 +0300 Subject: initial commit on a working icecast2 setup --- tasks/hugo_setup.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tasks/hugo_setup.yaml (limited to 'tasks/hugo_setup.yaml') diff --git a/tasks/hugo_setup.yaml b/tasks/hugo_setup.yaml new file mode 100644 index 0000000..475dc8c --- /dev/null +++ b/tasks/hugo_setup.yaml @@ -0,0 +1,24 @@ +- name: download latest hugo .deb + shell: | + curl -sSL https://api.github.com/repos/gohugoio/hugo/releases | + awk -F '"' '/browser_download_url/ {print $4}' | + grep -i 'extended' | + grep -i 'linux-amd64' | + head -1 + register: latest_hugo_url + +- name: download hugo .deb package + get_url: + url: "{{ latest_hugo_url.stdout }}" + dest: /tmp/hugo.deb + mode: '0644' + +- name: install hugo package + apt: + deb: /tmp/hugo.deb + state: present + +- name: remove hugo .deb package + file: + path: /tmp/hugo.deb + state: absent -- cgit v1.2.3