Commit 20a365ed authored by HgO's avatar HgO
Browse files

install php8 by default from sury repository

parent a6021d78
......@@ -7,9 +7,6 @@
- name: Installation de PHP
import_role:
name: php_fpm
vars:
# Dokuwiki handles php session name by itself
php_fpm_session_name: ""
tags: ['php_fpm']
- name: Configuration du site (caddy, php-fpm, etc.)
......
php_version: "7.4"
php_modules:
- php-curl
- php-gd
......@@ -5,3 +6,5 @@ php_modules:
- php-mbstring
- php-zip
- php-apcu
# Dokuwiki handles php session name by itself
php_fpm_session_name: ""
......@@ -7,9 +7,6 @@
- name: Installation de PHP
import_role:
name: php_fpm
vars:
# Grav handles php session name by itself
php_fpm_session_name: ""
tags: ['php_fpm']
- name: Installation de Composer
......
......@@ -7,3 +7,5 @@ php_modules:
- php-apcu
- php-yaml
- php-sqlite3
# Grav handles php session name by itself
php_fpm_session_name: ""
---
- name: Prepare
hosts: all
become: true
pre_tasks:
- name: Mise à jour du cache APT
apt:
update_cache: true
cache_valid_time: 3600
tasks:
- name: Installation de GPG
package:
name: gpg
state: present
- name: Ajout de la clé GPG de Sury dans APT
apt_key:
url: https://packages.sury.org/php/apt.gpg
state: present
- name: Ajout du dépôt Sury
apt_repository:
repo: deb https://packages.sury.org/php/ {{ ansible_distribution_release }} main
filename: sury-php
state: present
- name: Installation de PHP {{ php_version }} et de ses modules
package:
name: "{{ php_packages + php_modules | map('regex_replace', '$', php_version) | list }}"
name: "{{ (php_packages + php_modules) | map('regex_replace', '^php', 'php' + php_version) | list }}"
state: present
- name: Installation de imagemagick
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment