aboutsummaryrefslogtreecommitdiffstats
path: root/roles/obsd_httpd
diff options
context:
space:
mode:
Diffstat (limited to 'roles/obsd_httpd')
-rw-r--r--roles/obsd_httpd/defaults/main.yml2
-rw-r--r--roles/obsd_httpd/tasks/main.yml6
-rw-r--r--roles/obsd_httpd/templates/httpd.conf.j22
3 files changed, 5 insertions, 5 deletions
diff --git a/roles/obsd_httpd/defaults/main.yml b/roles/obsd_httpd/defaults/main.yml
index 48406cb..f7b6b57 100644
--- a/roles/obsd_httpd/defaults/main.yml
+++ b/roles/obsd_httpd/defaults/main.yml
@@ -1 +1 @@
-httpd_conf_d: /etc/httpd.d
+obsd_httpd_conf_d: /etc/httpd.d
diff --git a/roles/obsd_httpd/tasks/main.yml b/roles/obsd_httpd/tasks/main.yml
index 6e21ab8..2dd1b30 100644
--- a/roles/obsd_httpd/tasks/main.yml
+++ b/roles/obsd_httpd/tasks/main.yml
@@ -1,6 +1,6 @@
- name: Create httpd conf include directory
ansible.builtin.file:
- path: "{{ httpd_conf_d }}"
+ path: "{{ obsd_httpd_conf_d }}"
state: directory
owner: root
group: wheel
@@ -13,12 +13,12 @@
owner: root
group: wheel
mode: "0600"
- notify: restart httpd
+ notify: Reload httpd
- name: Ensure all registered httpd fragment files exist
ansible.builtin.copy:
content: ""
- dest: "{{ httpd_conf_d }}/{{ item }}"
+ dest: "{{ obsd_httpd_conf_d }}/{{ item }}"
force: false # If it already exists, don't overwrite it.
owner: root
group: wheel
diff --git a/roles/obsd_httpd/templates/httpd.conf.j2 b/roles/obsd_httpd/templates/httpd.conf.j2
index beec99c..2825853 100644
--- a/roles/obsd_httpd/templates/httpd.conf.j2
+++ b/roles/obsd_httpd/templates/httpd.conf.j2
@@ -1,5 +1,5 @@
types { include "/usr/share/misc/mime.types" }
{% for fragment in httpd_fragments %}
-include "{{ httpd_conf_d }}/{{ fragment }}"
+include "{{ obsd_httpd_conf_d }}/{{ fragment }}"
{% endfor %}