Skip to content
Snippets Groups Projects
Commit fdf384f6 authored by jurgenhaas's avatar jurgenhaas
Browse files

Use lineinfile only, if regex lines are matching anything

parent 7a8b676b
No related branches found
No related tags found
No related merge requests found
......@@ -178,6 +178,7 @@
dest: /etc/apache2/sites-available/{{ apache_conf_default_prefix }}default{{ apache_conf_ext }}
regexp: '{{ item.regexp }}'
line: '{{ item.line }}'
backrefs: yes
with_items:
- regexp: 'ProxyPassMatch'
line: ' ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:{{ php_fpm_port|default(9999) }}/var/www{{apache_server_default_root}}/$1'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment