--- - name: Proxmox Configuration Playbook hosts: proxmox remote_user: root tasks: - name: Adding ansible SSH Pubkey as authorized ansible.builtin.copy: mode: "0600" src: ../../Configs/authorized_keys dest: /root/.ssh/authorized_keys - name: Adding PVE-no-subscription repo ansible.builtin.blockinfile: path: /etc/apt/sources.list insertbefore: ^# security block: | # PVE pve-no-subscription repository provided by proxmox.com, # NOT recommended for production use deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription - name: Upgrading system ansible.builtin.apt: upgrade: safe update_cache: true cache_valid_time: 7200 - name: Installing sudo ansible.builtin.apt: name: sudo state: present