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" - name: "Install php deps"
ansible.builtin.apt: ansible.builtin.apt:
name: "{{ dolibarr_php_dependencies }}" name: "{{ dolibarr_php_dependencies }}"

View File

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

View File

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