From d798a2e8aef38e2fff6ce7a998712c51ccda14cd Mon Sep 17 00:00:00 2001 From: shynd Date: Sat, 9 Nov 2024 07:12:38 +0100 Subject: [PATCH] add update/upgrade playbook --- apt_update_and_upgrade.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 apt_update_and_upgrade.yml diff --git a/apt_update_and_upgrade.yml b/apt_update_and_upgrade.yml new file mode 100644 index 0000000..6da2ade --- /dev/null +++ b/apt_update_and_upgrade.yml @@ -0,0 +1,9 @@ +--- +- hosts: all + become: true + tasks: + - name: update and upgrade apt packages + apt: + upgrade: yes + update_cache: yes + cache_valid: 86400