aboutsummaryrefslogtreecommitdiffstats
path: root/roles/httpd_pre
diff options
context:
space:
mode:
Diffstat (limited to 'roles/httpd_pre')
-rw-r--r--roles/httpd_pre/tasks/main.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/httpd_pre/tasks/main.yml b/roles/httpd_pre/tasks/main.yml
new file mode 100644
index 0000000..83afb91
--- /dev/null
+++ b/roles/httpd_pre/tasks/main.yml
@@ -0,0 +1,18 @@
+- name: include httpd role variables
+ include_vars: "{{ inventory_dir }}/roles/httpd/defaults/main.yml"
+
+- name: create httpd directory
+ file:
+ path: /etc/httpd.d
+ state: directory
+ owner: 0
+ group: 0
+ mode: 0644
+
+- name: create htpasswd directory
+ file:
+ path: /var/www/htpasswd
+ state: directory
+ owner: "www"
+ group: "www"
+ mode: 0700
remember that computers suck.