From 74203eb6c910506c7c3a7906ed68bfbd8b1e6540 Mon Sep 17 00:00:00 2001 From: binary Date: Thu, 25 Mar 2021 21:54:39 +0100 Subject: Add htpasswd directory --- roles/httpd_pre/tasks/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'roles') diff --git a/roles/httpd_pre/tasks/main.yml b/roles/httpd_pre/tasks/main.yml index 61b052a..eb0af76 100644 --- a/roles/httpd_pre/tasks/main.yml +++ b/roles/httpd_pre/tasks/main.yml @@ -12,4 +12,10 @@ group: "{{ group_root }}" mode: 0644 - +- name: ensure htpasswd directory exists + file: + path: /var/www/htpasswd + state: directory + owner: "www" + group: "www" + mode: 0700 -- cgit v1.2.3