Chris Hammer 18a389df0f
All checks were successful
continuous-integration/drone/push Build is passing
Fix exceptions for better, more concise, functionality
2024-03-21 11:42:58 -04:00

22 lines
422 B
YAML

---
- name: Update package cache for Debian hosts
ansible.builtin.apt:
update_cache: true
when:
- "'apt' in ansible_pkg_mgr"
- name: Update package cache for RHEL/CentOS/Fedora hosts
ansible.builtin.dnf:
update_cache: true
when:
- "'dnf' in ansible_pkg_mgr"
- ansible_distribution_major_version|int >= 8
- name: Update all host packages
ansible.builtin.package: name=* state=latest
...