Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chusiang committed Mar 25, 2016
1 parent e3074e8 commit bb04645
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tasks/php-fpm-centos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
notify: restart php7-fpm on centos

- name: Disable port upstream of php-fpm
lineinfile: "dest=/etc/nginx/conf.d/php-fpm.conf state=present regexp='^server 127.0.0.1:9000' line='#server 127.0.0.1:9000'"
lineinfile: "dest=/etc/nginx/conf.d/php-fpm.conf state=present regexp='^ server 127.0.0.1:9000' line=' #server 127.0.0.1:9000'"
notify: restart php7-fpm on centos

- name: Enable socket upstream of php-fpm
lineinfile: "dest=/etc/nginx/conf.d/php-fpm.conf state=present regexp='^#server unix:/run/php-fpm/www.sock;' line='server unix:/run/php-fpm/www.sock;'"
lineinfile: "dest=/etc/nginx/conf.d/php-fpm.conf state=present regexp='^ #server unix:/run/php-fpm/www.sock;' line=' server unix:/run/php-fpm/www.sock;'"
notify: restart php7-fpm on centos


Expand Down
5 changes: 2 additions & 3 deletions tasks/use-yum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
- php70u-mysqlnd
- php70u-opcache
- php70u-pdo
when: php_packages is defined
notify:
- restart php7-fpm on centos
#when: php_packages is defined
notify: restart php7-fpm on centos

0 comments on commit bb04645

Please sign in to comment.