# SPDX-License-Identifier: MIT - name: 'Reload systemd unit configs' ansible.builtin.systemd_service: daemon_reload: true listen: 'Reload all systemd services' - name: 'Restart pveproxy.service' ansible.builtin.service: name: 'pveproxy.service' state: 'restarted' listen: 'Restart all Proxmox Virtual Environment services' - name: 'Validate Nginx config' ansible.builtin.shell: | nginx -t listen: - 'Restart all Proxmox Virtual Environment services' - 'Reload web server' - name: 'Restart nginx.service' ansible.builtin.service: name: 'nginx.service' state: 'reloaded' listen: - 'Restart all Proxmox Virtual Environment services' - 'Reload web server' - name: 'apt-get update' ansible.builtin.apt: update_cache: yes listen: - 'apt-get update'