From 33bfce81f82fa1caf7d061485d257d7838534f19 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Thu, 8 Oct 2026 18:01:11 -0700 Subject: Resolve ansible-lint findings Primarily, this is renaming variables to be prefixed with the role name. --- roles/obsd_httpd/defaults/main.yml | 2 +- roles/obsd_httpd/tasks/main.yml | 6 +++--- roles/obsd_httpd/templates/httpd.conf.j2 | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'roles/obsd_httpd') 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 %} -- cgit v1.2.3