aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-03-25 21:54:39 +0100
committerbinary <me@rgoncalves.se>2021-03-25 21:54:39 +0100
commit74203eb6c910506c7c3a7906ed68bfbd8b1e6540 (patch)
tree04e58f356cdf7c603d9819cd0b185be3d465c9d1
parent92a3e3becf353a892a8fad746c313b9ad0373174 (diff)
downloadinfrastructure-74203eb6c910506c7c3a7906ed68bfbd8b1e6540.tar.gz
Add htpasswd directory
-rw-r--r--roles/httpd_pre/tasks/main.yml8
1 files changed, 7 insertions, 1 deletions
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
remember that computers suck.