-
-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #929 from roots/php-7.2
Update to PHP 7.2
- Loading branch information
Showing
12 changed files
with
47 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,38 @@ | ||
--- | ||
- name: Add PHP 7.1 PPA | ||
- name: Add PHP 7.2 PPA | ||
apt_repository: | ||
repo: "ppa:ondrej/php" | ||
update_cache: yes | ||
|
||
- name: Install PHP 7.1 | ||
- name: Install PHP 7.2 | ||
apt: | ||
name: "{{ item.key }}" | ||
state: "{{ item.value }}" | ||
cache_valid_time: "{{ apt_cache_valid_time }}" | ||
with_dict: "{{ php_extensions }}" | ||
|
||
- name: Start php7.1-fpm service | ||
- name: Start php7.2-fpm service | ||
service: | ||
name: php7.1-fpm | ||
name: php7.2-fpm | ||
state: started | ||
enabled: true | ||
|
||
- name: Check for existing php7.1-fpm service | ||
stat: | ||
path: /etc/init.d/php7.1-fpm | ||
register: php71_status | ||
|
||
- name: Stop php7.1-fpm service if it exists | ||
service: | ||
name: php7.1-fpm | ||
state: stopped | ||
enabled: false | ||
register: service_stopped | ||
when: php71_status.stat.exists | ||
notify: reload php-fpm | ||
|
||
- name: PHP configuration file | ||
template: | ||
src: php.ini.j2 | ||
dest: /etc/php/7.1/fpm/php.ini | ||
dest: /etc/php/7.2/fpm/php.ini | ||
notify: reload php-fpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,5 @@ | |
handlers: | ||
- name: reload php-fpm | ||
service: | ||
name: php7.1-fpm | ||
name: php7.2-fpm | ||
state: reloaded |