Commit 12c69aca authored by Julian K's avatar Julian K Committed by aflatto

Add support for Ubuntu 18.04 (#83)

parent cfbee6d7
......@@ -5,13 +5,23 @@
- name: Install PHP requirements
apt:
name: "{{ item}}"
name: "{{ item }}"
state: present
with_items:
- php7.0
- libapache2-mod-php7.0
- php
- php-gd
- libapache2-mod-php
- name: Get PHP version
command: php --version
register: php_version
changed_when: false
- name: Set PHP version
set_fact: php_version="{{ php_version.stdout_lines[0] | regex_replace('^PHP (\d\.\d).*$','\\1') }}"
- name: Enable PHP apache module
apache2_module: name="php{{ php_version }}""
- name: Find out timezone
slurp:
......@@ -20,7 +30,7 @@
- name: Timezone in php.ini
lineinfile:
path: /etc/php/7.0/apache2/php.ini
path: '/etc/php/{{ php_version }}/apache2/php.ini'
regexp: '^;?date.timezone ='
line: 'date.timezone = "{{ etc_timezone["content"] | b64decode | regex_replace("\n") }}"'
notify: restart apache2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment