aboutsummaryrefslogtreecommitdiffstats
path: root/roles/obsd_httpd
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-10-08 18:01:11 -0700
committerEugene Triguba <hello@eugenetriguba.com>2026-10-11 18:36:51 -0700
commit33bfce81f82fa1caf7d061485d257d7838534f19 (patch)
tree0d11c71b3d80cff954f1f777a0e524b156eb16c8 /roles/obsd_httpd
parentAdd public and private git repo dir setup (diff)
downloadsite-configs-33bfce81f82fa1caf7d061485d257d7838534f19.zip
Resolve ansible-lint findings
Primarily, this is renaming variables to be prefixed with the role name.
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 %}