fix: update settings for new grav and php82

This commit is contained in:
2025-03-23 11:50:38 +01:00
parent 1ae0700a8c
commit 572a5ab0d0
5 changed files with 71 additions and 61 deletions

View File

@ -1,17 +1,19 @@
---
- name: install packages
apk: "name={{ item }} state=latest"
with_items: "{{ install_packages }}"
apk:
name: "{{ install_packages }}"
state: latest
# with_items: "{{ install_packages }}"
- name: symlink /usr/bin/php
file:
src: /usr/bin/php7
src: /usr/bin/php82
dest: /usr/bin/php
state: link
- name: download grav
get_url:
url: https://getgrav.org/download/core/grav-admin/1.7.12
url: https://getgrav.org/download/core/grav-admin/1.7.48
dest: /var/www/localhost/grav-cms.zip
- name: extract grav
@ -49,15 +51,13 @@
src: lighttpd-php-cgi.conf
dest: /etc/lighttpd/php-cgi.conf
- name: add php-cgi.conf to lighttpd config
lineinfile:
path: /etc/lighttpd/lighttpd.conf
line: 'include "php-cgi.conf"'
- name: add grav.conf to lighttpd config
lineinfile:
path: /etc/lighttpd/lighttpd.conf
line: 'include "grav.conf"'
- name: add update scripts
copy:
src: update-grav
dest: /etc/periodic/daily/update-grav
owner: root
group: root
mode: 0750
- name: restart lighttpd
service: