diff options
author | Nate Buttke <nate-web@riseup.net> | 2021-12-27 19:11:27 -0800 |
---|---|---|
committer | Nate Buttke <nate-web@riseup.net> | 2021-12-27 19:11:27 -0800 |
commit | b360c6f62c3a99bbe57b7d0c7f5fa55f9336a563 (patch) | |
tree | 978acf0b3c07a4f6307274b5b50512c41aad716e /update_packages.yml |
Diffstat (limited to 'update_packages.yml')
-rw-r--r-- | update_packages.yml | 20 |
1 files changed, 20 insertions, 0 deletions
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" |