Unverified Commit 2b576dd2 authored by Marc Crebassa's avatar Marc Crebassa Committed by GitHub
Browse files

Merge pull request #105 from klemens-u/master

Allow to use custom "php_ver" e.g. for PHP7.4 on Ubuntu 18.04 with ondrej PPA
parents 92a69df3 8ab88c5c
......@@ -3,12 +3,14 @@
# system_configuration for php 7.4:
php_dir: "/etc/php/7.4"
php_bin: "php-fpm7.4"
php_pkg_apcu: "php-apcu"
php_pkg_apcu: "php7.4-apcu"
php_pkg_spe:
- "php-imap"
- "php-imagick"
- "php-redis"
- "php7.4-bcmath"
- "php7.4-gmp"
- "php7.4-imagick"
- "php7.4-mbstring"
- "php7.4-redis"
- "php7.4-xml"
- "php7.4-zip"
- "php7.4-mbstring"
php_socket: "/run/php/php7.4-fpm.sock"
---
# additionnal setup and fixes for OS dependent environment
- name: "controls nextcloud_trusted_domain type"
# additional setup and fixes for OS dependent environment
- name: "[ENV] controls nextcloud_trusted_domain type"
fail:
msg: "New versions require nextcloud_trusted_domain to be declared as a list."
when: nextcloud_trusted_domain is string
- name: "[ENV] remember custom php version"
set_fact:
php_ver_custom: "{{ php_ver }}"
when: php_ver is defined
- name: "[ENV] include OS static vars"
include_vars: '{{ item }}'
loop:
- '{{ ansible_distribution }}-{{ ansible_distribution_release }}.yml'
- '{{ ansible_os_family }}.yml'
- name: "[ENV] Overwrite OS php_ver with custom php version if defined"
set_fact:
php_ver: "{{ php_ver_custom }}"
when: php_ver_custom is defined
- name: "[ENV] - ca-certificate are up to date"
# needed for downloading from download.nextcloud.com as the site use letsencrypt certificates
# letsencrypt may not be trusted on older OS
......@@ -44,4 +54,3 @@
when:
- nc_sudo_installed_result.rc is defined
- nc_sudo_installed_result.rc != 0
---
php_ver: 7.4
Markdown is supported
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