Skip to content

Commit

Permalink
fix timezone variable
Browse files Browse the repository at this point in the history
  • Loading branch information
akondas committed Dec 4, 2015
1 parent ec10fba commit 0397e70
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ php_packages:
- php7.0-fpm
- php7.0-mysql
- php7.0-gd
php_timezone: Europe/Warsaw
php_upload_max_filesize: "20M"
php_post_max_size: "20M"
php_memory_limit: "1024M"
8 changes: 4 additions & 4 deletions tasks/php-cli.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
- name: ensure timezone is set in cli php.ini
- name: Ensure timezone is set in cli php.ini
lineinfile: dest=/etc/php/7.0/cli/php.ini
regexp='date.timezone ='
line='date.timezone = {{ server.timezone }}'
line='date.timezone = {{ php_timezone }}'

- name: enabling opcache cli
- name: Enabling opcache cli
lineinfile: dest=/etc/php/7.0/cli/php.ini
regexp=';opcache.enable_cli=0'
regexp=';?opcache.enable_cli='
line='opcache.enable_cli=1'
2 changes: 1 addition & 1 deletion tasks/php-fpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- name: Ensure timezone is set in fpm php.ini
lineinfile: dest=/etc/php/7.0/fpm/php.ini
regexp='date.timezone ='
line='date.timezone = {{ server.timezone }}'
line='date.timezone = {{ php_timezone }}'

- name: Enabling opcache
lineinfile: dest=/etc/php/7.0/fpm/php.ini
Expand Down

0 comments on commit 0397e70

Please sign in to comment.