aboutsummaryrefslogtreecommitdiffstats
path: root/roles/httpd_pre
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-07 15:39:14 +0000
committerRomain Gonçalves <me@rgoncalves.se>2021-12-07 20:24:51 +0000
commit12cf22b1a8d9ad23809ad8048119a6920cbb9675 (patch)
tree9b7e4334497162c2e922e181eb8b01c57fc67e7f /roles/httpd_pre
parent333eff6a0aeefcbf573bbf5e725fc27b5b4cb9f6 (diff)
downloadrules-12cf22b1a8d9ad23809ad8048119a6920cbb9675.tar.gz
roles: Add httpd roles
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.