Separate update_cache task

This commit is contained in:
Jeffrey Serio 2025-01-07 18:26:36 -06:00
parent a39387675b
commit ce25ff16e8

View File

@ -1,13 +1,16 @@
---
- hosts: servers
- hosts: servers
gather_facts: true
become: true
tasks:
- name: Perform a cache update
ansible.builtin.apt:
update_cache: true
- name: Perform a dist-upgrade
ansible.builtin.apt:
upgrade: dist
update_cache: true
- name: Check if reboot is required
ansible.builtin.stat: