summaryrefslogtreecommitdiff
path: root/guest-upgrade.yml
blob: 4d3ce528852ffec19808d5019dbece952491fd7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
- name: Upgrade all vms to the latest version
  hosts: vms
  become: true
  gather_facts: true
  tasks:
    - name: Update all packages to their latest version
      ansible.builtin.apt:
        name: "*"
        state: latest
        autoremove: yes
        purge: true
        clean: yes
        update_cache: true