File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 3131- name : Copy across new php-fpm pool config for laravel
3232 template :
3333 src=php-fpm/laravel.conf.j2
34- dest=/etc/php5 /fpm/pool.d/laravel.conf
34+ dest=/etc/php/5.6 /fpm/pool.d/laravel.conf
3535 notify :
3636 - restart php-fpm
3737
Original file line number Diff line number Diff line change 11---
22- name : Install php-fpm
3- apt : name=php5-fpm state=present
3+ apt : name=php5.6 -fpm state=present
Original file line number Diff line number Diff line change 11---
22- name : Add apt repository for PHP 5.6
3- apt_repository : repo='ppa:ondrej/php5-5.6 '
3+ apt_repository : repo='ppa:ondrej/php/ubuntu '
44
55- name : Install python-software-properties
66 apt : name=python-software-properties state=present
77
8- - name : Install php
9- apt : name=php5 state=present
8+ - name : Install php 5.6
9+ apt : name=php5.6 state=present
1010
1111- name : Install required php packages
1212 apt : name={{ item }} state=present
1313 with_items :
14- - php5-mysql
15- - php5-intl
16- - php5-cli
17- - php5-mcrypt
14+ - php5.6 -mysql
15+ - php5.6 -intl
16+ - php5.6 -cli
17+ - php5.6 -mcrypt
1818
1919- name : Enable the MCrypt extension
20- shell : php5enmod mcrypt
20+ shell : phpenmod mcrypt
2121
2222- name : Install composer
2323 shell : curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
Original file line number Diff line number Diff line change 2525- name : Copy across new php-fpm pool config for symfony
2626 template :
2727 src=php-fpm/symfony.conf.j2
28- dest=/etc/php5 /fpm/pool.d/symfony.conf
28+ dest=/etc/php/5.6 /fpm/pool.d/symfony.conf
2929 notify :
3030 - restart php-fpm
3131
Original file line number Diff line number Diff line change 11---
22- hosts : all
3- sudo : true
3+ become : true
44 vars :
55 document_root : /vagrant
66 www_user : vagrant
99 - name : restart nginx
1010 service : name=nginx state=restarted
1111 - name : restart php-fpm
12- service : name=php5-fpm state=restarted
12+ service : name=php5.6 -fpm state=restarted
1313 pre_tasks :
1414 - name : update apt cache
1515 apt : update_cache=yes
You can’t perform that action at this time.
0 commit comments