-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupgrade.yaml
41 lines (38 loc) · 1 KB
/
upgrade.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
# Upgrade all the installed packages on all virtual, and the physical hosts,
# updating the virtual hosts first and completely before updating the physical
# hosts.
- name: Update all machines
ansible.builtin.import_playbook: update.yaml
- name: Upgrade all virtual machines
hosts: virtual
become: true
become_user: root
tasks:
- name: Upgrade the keyrings first
community.general.pacman:
name:
- archlinux-keyring
- alhp-keyring
state: latest
- name: Upgrade all available packages
community.general.pacman:
upgrade: true
tags:
- virtual-machines
- name: Upgrade all physical machines
hosts: physical
become: true
become_user: root
tasks:
- name: Upgrade the keyrings first
community.general.pacman:
name:
- archlinux-keyring
- alhp-keyring
state: latest
- name: Upgrade all available packages
community.general.pacman:
upgrade: true
tags:
- physical-machines