Add post-hook for letsencrypt certificate
This commit is contained in:
parent
0226b9a0a2
commit
2b80d8b762
3 changed files with 4 additions and 0 deletions
|
@ -3,3 +3,4 @@
|
|||
virtual_domain: tunuifranken.info
|
||||
letsencrypt_email: "dns@{{ virtual_domain }}"
|
||||
letsencrypt_domain: "{{ ansible_hostname }}.{{ virtual_domain }}"
|
||||
letsencrypt_post_hook: systemctl restart postfix dovecot
|
||||
|
|
|
@ -41,6 +41,8 @@
|
|||
- -m
|
||||
- "{{ letsencrypt_email }}"
|
||||
- --agree-tos
|
||||
- --post-hook
|
||||
- "{{ letsencrypt_post_hook }}"
|
||||
|
||||
- name: Set letsencrypt dns-01 challenge argv (staging)
|
||||
when: ansible_hostname.endswith('-test')
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
vars:
|
||||
letsencrypt_domain: "{{ forgejo_domain }}"
|
||||
letsencrypt_email: "{{ forgejo_server_admin }}"
|
||||
letsencrypt_post_hook: systemctl restart apache2
|
||||
|
||||
- name: Include apache2 tasks
|
||||
ansible.builtin.include_tasks: apache2.yml
|
||||
|
|
Loading…
Reference in a new issue