generated from sebclem/ansible-role-template
Install php8.1
This commit is contained in:
parent
7250b0a600
commit
dc459b3985
@ -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 }}"
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user