From 178fc56b6a77322cccc22d54f3e5eaeb0be9b9aa Mon Sep 17 00:00:00 2001 From: mojoaar Date: Thu, 17 Jul 2025 05:51:54 +0000 Subject: [PATCH] update_os.yml Added new file --- update_os.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 update_os.yml diff --git a/update_os.yml b/update_os.yml new file mode 100644 index 0000000..62435d8 --- /dev/null +++ b/update_os.yml @@ -0,0 +1,12 @@ +- hosts: all + become: true + tasks: + - name: Update apt cache (Debian/Ubuntu) + apt: + update_cache: yes + when: ansible_distribution == "Ubuntu" or ansible_distribution == "Debian" + + - name: Upgrade all packages (Debian/Ubuntu) + apt: + upgrade: dist + when: ansible_distribution == "Ubuntu" or ansible_distribution == "Debian" \ No newline at end of file