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