diff --git a/roles/proxmox-backup/tasks/main.yml b/roles/proxmox-backup/tasks/main.yml index 81f3a88..0ee4e60 100644 --- a/roles/proxmox-backup/tasks/main.yml +++ b/roles/proxmox-backup/tasks/main.yml @@ -82,5 +82,10 @@ enabled: no 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