diff options
Diffstat (limited to 'roles/httpd_pre/tasks/main.yml')
-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 |