Chris Hammer 7e758ca4f3 its been a while since i've worked on this
and it seems there were many changes left
uncommitted. i have no idea what state this is in
but we will refactor or start over from this point.
2023-12-08 00:56:58 -05:00

30 lines
590 B
YAML

---
- name: Update package cache for Debian hosts
apt:
update_cache: yes
when:
- ansible_distribution|lower == 'debian'
tags:
- skip_ansible_lint
- name: Update package cache for RHEL/CentOS/Fedora hosts
dnf:
update_cache: yes
when:
- (ansible_distribution|lower == 'centos' or
ansible_distribution|lower == 'fedora' or
ansible_distribution|lower == 'redhat')
- ansible_distribution_major_version|int >= 8
tags:
- skip_ansible_lint
- name: Update all host packages
package: name=* state=latest
tags:
- skip_ansible_lint
...