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/acme_client/tasks | |
| 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/acme_client/tasks')
| -rw-r--r-- | roles/acme_client/tasks/main.yml | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/roles/acme_client/tasks/main.yml b/roles/acme_client/tasks/main.yml index 35974e0..531857f 100644 --- a/roles/acme_client/tasks/main.yml +++ b/roles/acme_client/tasks/main.yml @@ -1,11 +1,11 @@ - name: Deploy acme challenge vhost fragment ansible.builtin.template: src: httpd.d/acme.conf - dest: "{{ httpd_conf_d | default('/etc/httpd.d') }}/acme.conf" + dest: "{{ obsd_httpd_conf_d | default('/etc/httpd.d') }}/acme.conf" owner: root group: wheel mode: "0644" - register: acme_vhost_config + register: acme_client_vhost_config - name: Deploy acme-client.conf ansible.builtin.template: @@ -15,13 +15,19 @@ group: wheel mode: "0600" -- name: Restart httpd +- name: Start httpd ansible.builtin.service: name: httpd - state: restarted - when: acme_vhost_config is changed + state: started + when: acme_client_vhost_config is changed # noqa: no-handler + +- name: Reload httpd + ansible.builtin.service: + name: httpd + state: reloaded + when: acme_client_vhost_config is changed # noqa: no-handler - name: Generate certificate - ansible.builtin.command: acme-client {{ acme_domain }} + ansible.builtin.command: acme-client {{ acme_client_domain }} args: - creates: "/etc/ssl/{{ acme_domain }}.fullchain.pem" + creates: "/etc/ssl/{{ acme_client_domain }}.fullchain.pem" |