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 | |
| parent | 95466bf02741b67134ccb34163659a7a9c299c43 (diff) | |
Run certbot
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('/') + '/' }}" |
