fix: update settings for new grav and php82
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user