Create playbook and role to update system

This commit is contained in:
c0de 2024-01-03 23:56:04 -06:00
parent 5e7d26a6b5
commit 9056a38e4b
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,9 @@
---
- name: Update the system
hosts: pibox
become: true
roles:
- role: apt-update-system
...

View File

@ -0,0 +1,19 @@
---
- name: update the installed packages
ansible.builtin.apt:
update_cache: true
name: "*"
state: latest
- name: update the operating system
ansible.builtin.apt:
upgrade: dist
- name: clean up apt cache
ansible.builtin.apt:
autoclean: true
autoremove: true
purge: true
...