proxmox-backup: set domain for ACME

This commit is contained in:
Gašper Fele-Žorž 2024-09-10 15:06:53 +02:00
parent 11a5ec85b3
commit add84ba1d2

View file

@ -82,5 +82,10 @@
enabled: no enabled: no
notify: reboot notify: reboot
- name: Set domain for ACME certificate renewals
command:
cmd: 'proxmox-backup-manager node update --acmedomain0 domain={{ interfaces | selectattr("name", "==", "lo")
| map(attribute="ip_addresses") | flatten | map(attribute="dns_name") | first }}'
changed_when: false # maybe write a proper check if certificate requests are ever ansibled
- include_tasks: firewall.yml - include_tasks: firewall.yml