Skip to content

Commit

Permalink
Check and stop php7.1-fpm service
Browse files Browse the repository at this point in the history
  • Loading branch information
swalkinshaw committed Feb 13, 2018
1 parent a1b4623 commit 88c3b5b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions roles/php/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@
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
Expand Down

0 comments on commit 88c3b5b

Please sign in to comment.