2022-04-20 17:14:35 +02:00
|
|
|
|
|
|
|
- name: Verify the webroot exists
|
|
|
|
file:
|
|
|
|
path: "{{ hugo_deploy_dest_webroot }}"
|
|
|
|
state: directory
|
|
|
|
owner: www-data
|
|
|
|
group: www-data
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- block:
|
|
|
|
- name: Build Openring
|
|
|
|
shell:
|
|
|
|
cmd: go build
|
|
|
|
chdir: "{{ hugo_deploy_download_path}}/tools/openring"
|
|
|
|
|
|
|
|
- name: Generate Openring
|
|
|
|
shell:
|
|
|
|
cmd: ./openring -s https://www.laquadrature.net/feed -s https://blog.mondediplo.net/rss/ -s https://solar.lowtechmagazine.com/feeds/all-en.rss.xml < {{hugo_deploy_download_path}}/themes/blogotheme/layouts/partials/openring-in.html > {{hugo_deploy_download_path}}/themes/blogotheme/layouts/partials/openring-out.html
|
|
|
|
chdir: "{{hugo_deploy_download_path}}/tools/openring/"
|
|
|
|
when: hugo_deploy_build_openring
|
|
|
|
|
|
|
|
- name: Building the website with Hugo
|
|
|
|
shell:
|
2022-04-20 18:25:23 +02:00
|
|
|
cmd: hugo --themesDir themes --theme blogotheme --baseURL="https://{{ hugo_deploy_site_url }}" --enableGitInfo --minify --templateMetrics
|
2022-04-20 17:14:35 +02:00
|
|
|
chdir: "{{ hugo_deploy_download_path }}"
|
|
|
|
|
|
|
|
- name: Copy the website to it's webroot
|
|
|
|
copy:
|
|
|
|
remote_src: yes
|
|
|
|
src: "{{ hugo_deploy_download_path }}/public/"
|
|
|
|
dest: "{{ hugo_deploy_dest_webroot }}"
|