roles/php5-fpm: Fix php.ini reconfiguration (pathinfo)

Use replace instead of lineinfile, addresses GitHub issue #1.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2014-09-14 12:34:44 +03:00
parent 3d3b6c8a3f
commit 6d07af97f3
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -18,7 +18,7 @@
# re-configure php to only process exact paths, see: # re-configure php to only process exact paths, see:
# http://codex.wordpress.org/Nginx # http://codex.wordpress.org/Nginx
- name: Update php.ini - name: Update php.ini
lineinfile: dest=/etc/php5/fpm/php.ini regexp=^;cgi.fix_pathinfo line=cgi.fix_pathinfo=0 replace: dest=/etc/php5/fpm/php.ini regexp='^;cgi\.fix_pathinfo=0$' replace='cgi.fix_pathinfo=0'
notify: restart php5-fpm notify: restart php5-fpm
tags: php5-fpm tags: php5-fpm