--- - name: Install qemu guest agent apt: update_cache: true install_recommends: false name: - qemu-guest-agent register: apt_result retries: 3 until: apt_result is succeeded - name: Remove cloud-init apt: name: cloud-init state: absent purge: true register: apt_result retries: 3 until: apt_result is succeeded