From d1c9aa40ccb5910076d0ec94843efccf62ee006a Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 10 Jul 2025 17:19:00 +0300 Subject: Run certbot --- tasks/network.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tasks/network.yml') diff --git a/tasks/network.yml b/tasks/network.yml index d582d0c..ed57a13 100644 --- a/tasks/network.yml +++ b/tasks/network.yml @@ -76,6 +76,11 @@ mode: "0644" register: nginx_conf +- name: Generate LetsEncrypt certs + shell: certbot certonly --standalone -n -m jan@jantuomi.fi --agree-tos -d {{ item }} + loop: "{{ static_sites | selectattr('tls') | map(attribute='host') }}" + when: nginx_conf.changed + - name: Copy over jan.systems HTML ansible.posix.synchronize: src: "{{ jan_systems_html_dir.rstrip('/') + '/' }}" -- cgit v1.3