From 2cc7c82fb2c27bef61debea63ca2069694e0e9fb Mon Sep 17 00:00:00 2001 From: Mark O'Brien Date: Thu, 27 Aug 2020 15:13:19 +0100 Subject: [PATCH] [proxies] ensure dir exists --- roles/httpd/redirectmatch/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/httpd/redirectmatch/tasks/main.yml b/roles/httpd/redirectmatch/tasks/main.yml index 4fe566a929..169ee8984f 100644 --- a/roles/httpd/redirectmatch/tasks/main.yml +++ b/roles/httpd/redirectmatch/tasks/main.yml @@ -6,6 +6,13 @@ # role only into the {{website}}/ folder for each site. # This is the only real work we do. + +- name: Ensure directory exists for redirect + file: + path: /etc/httpd/conf.d/{{website}} + state: directory + mode: '0744' + - name: Copy over httpd redirectmatch file for {{shortname}} template: > src=redirectmatch.conf