diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-07-10 17:19:00 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-07-10 17:19:00 +0300 |
| commit | d1c9aa40ccb5910076d0ec94843efccf62ee006a (patch) | |
| tree | 1476503a2d2d76cf543ef0b6521e1f4aa3540806 /tasks/network.yml | |
| parent | 95466bf02741b67134ccb34163659a7a9c299c43 (diff) | |
Run certbot
Diffstat (limited to 'tasks/network.yml')
| -rw-r--r-- | tasks/network.yml | 5 |
1 files changed, 5 insertions, 0 deletions
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('/') + '/' }}" |
