mirror of
https://codeberg.org/hyperreal/ansible-homelab
synced 2025-01-18 09:13:44 +01:00
Separate update_cache task
This commit is contained in:
parent
a39387675b
commit
ce25ff16e8
@ -1,13 +1,16 @@
|
|||||||
---
|
---
|
||||||
- hosts: servers
|
- hosts: servers
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: Perform a cache update
|
||||||
|
ansible.builtin.apt:
|
||||||
|
update_cache: true
|
||||||
|
|
||||||
- name: Perform a dist-upgrade
|
- name: Perform a dist-upgrade
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
upgrade: dist
|
upgrade: dist
|
||||||
update_cache: true
|
|
||||||
|
|
||||||
- name: Check if reboot is required
|
- name: Check if reboot is required
|
||||||
ansible.builtin.stat:
|
ansible.builtin.stat:
|
||||||
|
Loading…
Reference in New Issue
Block a user