aboutsummaryrefslogtreecommitdiffstats
path: root/roles/httpd/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/httpd/tasks')
-rw-r--r--roles/httpd/tasks/main.yml26
1 files changed, 25 insertions, 1 deletions
diff --git a/roles/httpd/tasks/main.yml b/roles/httpd/tasks/main.yml
index f946044..584ae0b 100644
--- a/roles/httpd/tasks/main.yml
+++ b/roles/httpd/tasks/main.yml
@@ -1,10 +1,34 @@
---
+- name: create httpd directory
+ ansible.builtin.file:
+ path: "{{ httpd_configuration_dir }}"
+ state: directory
+ owner: 0
+ group: 0
+ mode: "0644"
+
+- name: create passwords directory
+ ansible.builtin.file:
+ path: "{{ httpd_passwords_dir }}"
+ state: directory
+ owner: "{{ httpd_user }}"
+ group: "{{ httpd_group }}"
+ mode: "0700"
+
+- name: create sites directory
+ ansible.builtin.file:
+ path: "{{ httpd_sites_dir }}"
+ state: directory
+ owner: 0
+ group: 0
+ mode: "0755"
+
- name: retrieve all configuration files
ansible.builtin.find:
path: "{{ httpd_configuration_dir }}"
patterns: "*.conf"
- register: configuration_files
+ register: httpd_configuration_files
- name: generate httpd configuration
ansible.builtin.template:
remember that computers suck.