diff --git a/tasks/apache.yml b/tasks/apache.yml index 2391c046219e796750a2606085cf183fd8ce083a..f13601b24809fdfa961c2fd9e1d9af7762aae8f4 100644 --- a/tasks/apache.yml +++ b/tasks/apache.yml @@ -40,6 +40,18 @@ notify: - Restart Apache +- name: Set Oracle environment variables + lineinfile: + dest: /etc/apache2/envvars + regexp: '^{{ item }}' + line: '{{ item }}' + when: repository is defined and php_needs_oci8|default(false) + with_items: + - export LD_LIBRARY_PATH=/opt/oracle/instantclient_18_5 + - export ORACLE_HOME=/opt/oracle/instantclient_18_5 + notify: + - Restart Apache + - name: Configure Security, Global Redirect, Global Deny, Logging template: src: etc-apache2-conf-available-{{item }}