What is the proper way to upgrade PVE through an Ansible playbook?

Maeve

New Member
Aug 2, 2022
14
0
1
21
Louisville, Kentucky
Hey all,

I'm learning how to use Ansible right now. I know that for most apt based distros you can just use:
YAML:
tasks:
  - name: Update and upgrade apt packages
    apt:
      upgrade: yes
      update_cache: yes
      cache_valid_time: 86400
But as far as I can tell this would run apt upgrade. Several official or popular sources say that Proxmox VE should be either updated through the web browser or with something like pveupgrade or specifically apt dist-upgrade.

I know that quite a few people use Ansible to update their nodes, so how would you guys recommend doing it? Is there a way to specify dist-upgrade rather than just upgrade?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!