From f1b20d1a3973796f8f9671dc1acf0d5b6aa42527 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Mon, 8 Dec 2014 17:58:51 +0000 Subject: [PATCH] Let's try a with_first_found here to special case some entries. --- roles/httpd/reverseproxy/tasks/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/httpd/reverseproxy/tasks/main.yml b/roles/httpd/reverseproxy/tasks/main.yml index e02f31f2f0..23b1c27697 100644 --- a/roles/httpd/reverseproxy/tasks/main.yml +++ b/roles/httpd/reverseproxy/tasks/main.yml @@ -7,11 +7,14 @@ - name: Copy in ProxyPassReverse for {{destname}} ({{website}}/{{remotepath}}) template: > - src=reversepassproxy.conf + src={{item}} dest=/etc/httpd/conf.d/{{website}}/{{destname}}.conf owner=root group=root mode=0644 + with_first_found: + - reversepassproxy.{{destname}}.conf + - reversepassproxy.conf notify: - restart httpd tags: