Install php8.1

This commit is contained in:
SebClem 2023-07-21 14:19:33 +02:00
parent 7250b0a600
commit dc459b3985
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50
3 changed files with 41 additions and 17 deletions

View File

@ -1,3 +1,25 @@
- name: Install deps for php repo
ansible.builtin.apt:
name:
- ca-certificates
- curl
- name: Save repo key
ansible.builtin.get_url:
url: https://packages.sury.org/php/apt.gpg
dest: /usr/share/keyrings/deb.sury.org-php.gpg
mode: "644"
- name: Add repo
ansible.builtin.template:
src: php.list.j2
dest: /etc/apt/sources.list.d/php.list
mode: "644"
- name: Apt update
ansible.builtin.apt:
update_cache: true
- name: "Install php deps"
ansible.builtin.apt:
name: "{{ dolibarr_php_dependencies }}"

View File

@ -2,7 +2,9 @@
DocumentRoot {{ dolibarr_install_dir }}/htdocs
<Directory {{ dolibarr_install_dir }}/htdocs>
AllowOverride All
AllowOverride All
Options Indexes FollowSymLinks
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.lo

View File

@ -1,24 +1,24 @@
---
# vars file for Ansible-Dolibarr-Role
dolibarr_php_dependencies:
- php
- php-cli
- php-mysql
- php-common
- php-zip
- php-mbstring
- php-xmlrpc
- php-curl
- php-soap
- php-gd
- php-xml
- php-intl
- php-ldap
- php-imap
dolibarr_php8.1_dependencies:
- php8.1
- php8.1-cli
- php8.1-mysql
- php8.1-common
- php8.1-zip
- php8.1-mbstring
- php8.1-xmlrpc
- php8.1-curl
- php8.1-soap
- php8.1-gd
- php8.1-xml
- php8.1-intl
- php8.1-ldap
- php8.1-imap
dolibarr_apache_dependencies:
- apache2
- libapache2-mod-php
- libapache2-mod-php8.1
dolibarr_dowload_url: https://github.com/Dolibarr/dolibarr/archive/refs/tags/{{ dolibarr_version }}.tar.gz