diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-12-07 15:39:14 +0000 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-12-07 20:24:51 +0000 |
commit | 12cf22b1a8d9ad23809ad8048119a6920cbb9675 (patch) | |
tree | 9b7e4334497162c2e922e181eb8b01c57fc67e7f /roles/httpd_pre | |
parent | 333eff6a0aeefcbf573bbf5e725fc27b5b4cb9f6 (diff) | |
download | rules-12cf22b1a8d9ad23809ad8048119a6920cbb9675.tar.gz |
roles: Add httpd roles
Diffstat (limited to 'roles/httpd_pre')
-rw-r--r-- | roles/httpd_pre/tasks/main.yml | 18 |
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 |