Commit 01c05030 authored by MAccadia's avatar MAccadia Committed by aflatto
Browse files

Set timezone in php.ini on Debian (#71)

Fix for :date.timezone' definition 
parent 0bb81b3e
......@@ -4,3 +4,8 @@
service: name=icinga2
state=restarted
enabled=yes
- name: restart apache2
service: name=apache2
state=restarted
enabled=yes
......@@ -13,6 +13,18 @@
- php-gd
- name: Find out timezone
slurp:
src: /etc/timezone
register: etc_timezone
- name: Timezone in php.ini
lineinfile:
path: /etc/php/7.0/apache2/php.ini
regexp: '^;?date.timezone ='
line: 'date.timezone = "{{ etc_timezone["content"] | b64decode | regex_replace("\n") }}"'
notify: restart apache2
- name: Install Icinga2 IDO modules on Debian family
apt:
name: icinga2-ido-mysql
......
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