Skip to content

Commit

Permalink
Added PHP default timezone (through all.yml setting)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlakis committed Jan 4, 2016
1 parent 8044793 commit dbe6ccb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ansible/roles/php7/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
sudo: yes
file: src=/usr/bin/php70 dest=/usr/bin/php state=link

- name: Create php.ini defaults
sudo: yes
lineinfile: dest=/etc/opt/remi/php70/php.ini regexp='^;date.timezone =' line='date.timezone ={{ php.timezone }}'

- name: Create PHP-FPM service
sudo: yes
template: src=php-fpm.service dest=/etc/init.d/php-fpm
Expand Down
1 change: 1 addition & 0 deletions ansible/vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ vagrant_local:
php:
install: '1'
packages: ['php70-php-cli', 'php70-php-common', 'php70-php-opcache', 'php70-php-fpm', 'php70-php-mysqlnd', 'php70-php-pdo', 'php70-php-mcrypt', 'php70-php-intl', 'php70-php-devel','php70-php-xml', 'php70-php-zip']
timezone: Europe/London

app:
env: development
Expand Down

0 comments on commit dbe6ccb

Please sign in to comment.