Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 69d78819 authored by Jean-François HOVINNE's avatar Jean-François HOVINNE
Browse files

fix: OCI8 extension setup on AL2 (fixes #23)

parent 20776c4a
No related branches found
No related tags found
1 merge request!23fix: OCI8 extension setup on AL2 (fixes #23)
......@@ -32,7 +32,8 @@ Dependencies
* optional: ecgalaxy.common_packages
* optional: ecgalaxy.oracle_instantclient
On Ubuntu, the `ecgalaxy.oracle_instantclient` role should be executed first if `php_install_oci8_extension` is set to `true`.
On Amazon Linux 2 and Ubuntu, the `ecgalaxy.oracle_instantclient` role should be executed first
if `php_install_oci8_extension` is set to `true`.
Example Playbook
----------------
......@@ -55,7 +56,7 @@ To globally install PHP 8.2:
bash <(curl -s https://code.europa.eu/-/snippets/1/raw/main/ansible-role.sh) ecgalaxy.php --extra-vars '{"php_version":"8.2"}'
You may need to execute the `ecgalaxy.oracle_instantclient` first (Ubuntu):
You may need to execute the `ecgalaxy.oracle_instantclient` first (Amazon Linux 2, Ubuntu):
bash <(curl -s https://code.europa.eu/-/snippets/1/raw/main/ansible-role.sh) ecgalaxy.oracle_instantclient
......
......@@ -3,4 +3,14 @@
ansible.builtin.package:
name: "{{ php_package_prefix }}-oci8"
state: present
when: ansible_distribution != 'Amazon'
become: true
- name: Install OCI8 extension
ansible.builtin.package:
name: "{{ php_package_prefix }}-oci8"
state: present
disable_plugin:
- priorities
when: ansible_distribution == 'Amazon'
become: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment