diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-10-08 18:01:11 -0700 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-10-11 18:36:51 -0700 |
| commit | 33bfce81f82fa1caf7d061485d257d7838534f19 (patch) | |
| tree | 0d11c71b3d80cff954f1f777a0e524b156eb16c8 /roles/obsd_httpd | |
| parent | Add public and private git repo dir setup (diff) | |
| download | site-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.yml | 2 | ||||
| -rw-r--r-- | roles/obsd_httpd/tasks/main.yml | 6 | ||||
| -rw-r--r-- | roles/obsd_httpd/templates/httpd.conf.j2 | 2 |
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 %} |