diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-10-03 11:41:33 -0700 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-10-11 18:36:45 -0700 |
| commit | 024ae3365ffa40b5d0b117577c552587b258ca7a (patch) | |
| tree | a2907f5a9018009e55b0d1690c3210844b74af30 /roles/acme_client/tasks | |
| download | site-configs-024ae3365ffa40b5d0b117577c552587b258ca7a.zip | |
Initial Commit
Diffstat (limited to 'roles/acme_client/tasks')
| -rw-r--r-- | roles/acme_client/tasks/main.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/roles/acme_client/tasks/main.yml b/roles/acme_client/tasks/main.yml new file mode 100644 index 0000000..54cd70c --- /dev/null +++ b/roles/acme_client/tasks/main.yml @@ -0,0 +1,24 @@ +- name: Deploy acme challenge vhost fragment + ansible.builtin.copy: + src: httpd.d/acme.conf + dest: "{{ httpd_conf_d | default('/etc/httpd.d') }}/acme.conf" + owner: root + group: wheel + mode: "0644" + notify: restart httpd + +- name: Deploy acme-client.conf + ansible.builtin.template: + src: acme-client.conf.j2 + dest: /etc/acme-client.conf + owner: root + group: wheel + mode: "0600" + +- name: Flush handlers so httpd restarts before issuing cert + ansible.builtin.meta: flush_handlers + +- name: Ensure certificates exist + ansible.builtin.command: acme-client {{ acme_domain }} + args: + creates: "/etc/ssl/{{ acme_domain }}.fullchain.pem" |