--- - name: PVE base configuration hosts: proxmox gather_facts: false serial: 1 # one host at a time tasks: - name: UI primary IP (/etc/hosts) tags: network ansible.builtin.lineinfile: path: /etc/hosts regexp: ' {{ inventory_hostname_short }}$' line: '{{ primary_ipv6 | split("/") | first }} {{ inventory_hostname }} {{ inventory_hostname_short }}' - name: /etc/network/interfaces tags: network ansible.builtin.template: src: templates/network.interfaces.j2 dest: /etc/network/interfaces notify: reload networking handlers: - name: reload networking ansible.builtin.systemd_service: name: networking.service state: reloaded