diff options
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/general.yml | 1 | ||||
| -rw-r--r-- | tasks/network.yml | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tasks/general.yml b/tasks/general.yml index 902d6c4..3c55117 100644 --- a/tasks/general.yml +++ b/tasks/general.yml @@ -8,6 +8,7 @@ - dma - jq - curl + - py311-certbot - name: Set up periodic.conf template: 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('/') + '/' }}" |
