This commit is contained in:
Kekskurse 2023-08-06 22:28:13 +02:00
parent 7377f4632a
commit 128a3af372
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4

View file

@ -4,7 +4,7 @@
remote_user: root remote_user: root
vars: vars:
forgejo: 1.20.2-0 forgejo: 1.20.2-0
domain: git2.keks.cloud domain: git.keks.cloud
sslmail: admin@keks.cloud sslmail: admin@keks.cloud
handlers: handlers:
- name: Restart forgejo - name: Restart forgejo
@ -102,7 +102,7 @@
register: ssl_file_result register: ssl_file_result
- name: Return motd to registered var - name: Return motd to registered var
ansible.builtin.command: certbot -n --test-cert --nginx --agree-tos -m {{ sslmail }} -d {{ domain }} ansible.builtin.command: certbot -n --nginx --agree-tos -m {{ sslmail }} -d {{ domain }}
when: not ssl_file_result.stat.exists when: not ssl_file_result.stat.exists
notify: notify:
- Restart nginx - Restart nginx