From b360c6f62c3a99bbe57b7d0c7f5fa55f9336a563 Mon Sep 17 00:00:00 2001 From: Nate Buttke Date: Mon, 27 Dec 2021 19:11:27 -0800 Subject: restart repo --- update_packages.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 update_packages.yml (limited to 'update_packages.yml') diff --git a/update_packages.yml b/update_packages.yml new file mode 100644 index 0000000..f5a1b88 --- /dev/null +++ b/update_packages.yml @@ -0,0 +1,20 @@ +--- +- hosts: all +# strategy: free + become: true + tasks: + + - name: Install updates (apt) + ansible.builtin.apt: + name: "*" + state: latest + update_cache: yes + when: + - ansible_os_family == "Debian" + + - name: Install updates (pacman) + community.general.pacman: + upgrade: yes + update_cache: yes + when: + - ansible_os_family == "Archlinux" -- cgit v1.2.3