23 lines
530 B
YAML
23 lines
530 B
YAML
---
|
|
- name: run updates (debian)
|
|
apt: upgrade=dist force_apt_get=yes
|
|
tags:
|
|
- debian
|
|
- update
|
|
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
|
|
|
|
- name: run updates (rhel)
|
|
yum:
|
|
name: '*'
|
|
state: latest
|
|
tags:
|
|
- rhel
|
|
- update
|
|
when: ansible_distribution == 'CentOS' or ansible_distribution == 'RedHat' or ansible_distribution == 'AlmaLinux'
|
|
|
|
- name: run updates (arch)
|
|
community.general.pacman:
|
|
update_cache: true
|
|
upgrade: true
|
|
when: ansible_distribution == 'Archlinux'
|