From 12cf22b1a8d9ad23809ad8048119a6920cbb9675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Tue, 7 Dec 2021 15:39:14 +0000 Subject: roles: Add httpd roles --- roles/httpd_pre/tasks/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 roles/httpd_pre/tasks/main.yml (limited to 'roles/httpd_pre/tasks/main.yml') 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 -- cgit v1.2.3