update grav to latest + add possibility to var for files paths

This commit is contained in:
meaz 2024-02-06 21:24:54 +01:00
parent 1007200cb6
commit e9501cd27d
Signed by: meaz
GPG Key ID: CD7A47B2F1ED43B4
3 changed files with 7 additions and 3 deletions

View File

@ -2,6 +2,8 @@
grav_modules_already_installed: 'false' # set to true after 1st installation
grav_extra_files_path: '../files'
grav_website_repo:
- site_hostname: disroot.lan
repo: 'https://git.disroot.org/Disroot/Website.git'

View File

@ -2,6 +2,8 @@
grav_modules_already_installed: 'false' # set to true after 1st installation so that it doesn't install plugins again
grav_extra_files_path: '../files'
grav_pkg:
- dialog
- ca-certificates
@ -12,7 +14,7 @@ grav_tmp_dir: '/tmp/vagrant'
grav_path: '/var/www'
grav_user: 'www-data'
grav_group: 'www-data'
grav_version: '1.7.41.1'
grav_version: '1.7.44'
grav_download_url: 'https://github.com/getgrav/grav/releases/download/{{ grav_version }}/grav-v{{ grav_version }}.zip'
# Repos

View File

@ -2,7 +2,7 @@
- name: '[Config] - Deploy Grav system config file'
copy:
src: '{{ item.system_file }}'
src: '{{ grav_extra_files_path }}/{{ item.system_file }}'
dest: '{{ grav_path }}/{{ item.site_hostname }}/site/user/config/system.yaml'
owner: "{{ grav_user }}"
group: "{{ grav_group }}"
@ -13,7 +13,7 @@
- name: '[Config] - Deploy Grav site config file'
copy:
src: '{{ item.site_file }}'
src: '{{ grav_extra_files_path }}/{{ item.site_file }}'
dest: '{{ grav_path }}/{{ item.site_hostname }}/site/user/config/site.yaml'
owner: "{{ grav_user }}"
group: "{{ grav_group }}"