Closed maccadia closed 6 years ago
IcingaWeb2 setup complains about php timezone not set (http://[IP]/icingaweb2/setup > Modules).
http://[IP]/icingaweb2/setup > Modules
The PHP config `date.timezone' is not defined.
Something like this:
tasks: - name: Timezone in php.ini lineinfile: path: /etc/php/7.0/apache2/php.ini regexp: '^;?date.timezone =' line: "date.timezone = \"{{ lookup('file', '/etc/timezone') }}\"" notify: restart apache2
ansible 2.4.3.0 python version = 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609] Ubuntu 16.04.4 LTS
Hello This is being addressed by PR #66
Thanks. I haven't checked there. I'm not a github master yet ;-)
Using ansible_fact is indeed better than file lookup.
IcingaWeb2 setup complains about php timezone not set (
http://[IP]/icingaweb2/setup > Modules
).Possible Solution
Something like this:
My Environment