diff options
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" |