diff --git a/tasks/php-fpm-centos.yml b/tasks/php-fpm-centos.yml index 27a2657..d288c72 100644 --- a/tasks/php-fpm-centos.yml +++ b/tasks/php-fpm-centos.yml @@ -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 diff --git a/tasks/use-yum.yml b/tasks/use-yum.yml index 9a6391b..0d026dc 100644 --- a/tasks/use-yum.yml +++ b/tasks/use-yum.yml @@ -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