--- - name: remove enterprise repo file: path: /etc/apt/sources.list.d/pve-enterprise.list state: absent - name: add proxmox no subscription repo apt_repository: repo: deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription - name: create non-root user user: name: "{{ proxmox_username }}" groups: - sudo shell: /bin/bash - name: give passwordless sudo to sudo group lineinfile: path: /etc/sudoers state: present regexp: '^%sudo' line: '%sudo ALL=(ALL) NOPASSWD: ALL' validate: '/usr/sbin/visudo -cf %s' - name: deploy ssh public key authorized_key: user: "{{ proxmox_username }}" state: present key: "{{ lookup('file', 'data/common/id_rsa.pub') }}"