Commit 5c6195ae authored by HgO's avatar HgO
Browse files

rm install php latest version

parent 32fa6798
Pipeline #410 passed with stage
in 1 minute and 30 seconds
...@@ -17,8 +17,6 @@ nextcloud_src_archive: "{{ nextcloud_src_dir }}/{{ nextcloud_install_url | basen ...@@ -17,8 +17,6 @@ nextcloud_src_archive: "{{ nextcloud_src_dir }}/{{ nextcloud_install_url | basen
nextcloud_data_dir: "{{ web_app_dist_dir }}/data" nextcloud_data_dir: "{{ web_app_dist_dir }}/data"
nextcloud_import_file: "{{ web_app_dist_dir }}/config/import.json" nextcloud_import_file: "{{ web_app_dist_dir }}/config/import.json"
nextcloud_php_version: ""
nextcloud_postgres_install_enabled: true nextcloud_postgres_install_enabled: true
nextcloud_database_driver: pgsql nextcloud_database_driver: pgsql
nextcloud_database_name: nextcloud nextcloud_database_name: nextcloud
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
import_role: import_role:
name: php_fpm name: php_fpm
vars: vars:
php_version: "{{ nextcloud_php_version }}" php_version: "8.0"
php_extra_modules: php_extra_modules:
- bcmath - bcmath
- bz2 - bz2
......
php_version: "" php_version: "8.0"
php_config_dir: "/etc/php/{{ php_version }}" php_config_dir: "/etc/php/{{ php_version }}"
php_extra_modules: [] php_extra_modules: []
......
...@@ -16,19 +16,6 @@ ...@@ -16,19 +16,6 @@
- "{{ php_fpm_executable }}" - "{{ php_fpm_executable }}"
state: present state: present
- name: Récupération et définition de la dernière version de PHP
when: php_version == ""
block:
- name: Récupération de la dernière version de PHP
# Regex: https://unix.stackexchange.com/questions/13466/can-grep-output-only-specified-groupings-that-match/13467#13467
shell: php -v | sed -n 's/^PHP \([[:digit:]]\.[[:digit:]]\).*/\1/p'
changed_when: false
register: _php_version
- name: Définition de la dernière version de PHP
set_fact:
php_version: "{{ _php_version.stdout }}"
- name: Installation des modules PHP par défaut - name: Installation des modules PHP par défaut
package: package:
name: "{{ php_module }}" name: "{{ php_module }}"
...@@ -75,7 +62,7 @@ ...@@ -75,7 +62,7 @@
- reload php-fpm - reload php-fpm
tags: ['php_config'] tags: ['php_config']
- name: Activation de php{{ php_version }}-fpm au démarrage - name: Activation de {{ php_fpm_executable }} au démarrage
service: service:
name: "{{ php_fpm_executable }}" name: "{{ php_fpm_executable }}"
state: started state: started
......
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