2022-12-16 15:39:49 +00:00
|
|
|
---
|
|
|
|
- name: Update and upgrade package managed stuff
|
|
|
|
# when: update
|
|
|
|
block:
|
|
|
|
# - name: Install yay (AUR helper)
|
2022-03-23 01:03:04 +00:00
|
|
|
|
2022-12-16 15:39:49 +00:00
|
|
|
# - name: Update and upgrade yay packages
|
|
|
|
# yay: update_cache=yes upgrade=yes
|
|
|
|
# when: package_manager == 'yay' or 'yay' in group_names
|
2022-03-23 01:03:04 +00:00
|
|
|
|
2022-12-16 15:39:49 +00:00
|
|
|
- name: Update and upgrade pacman packages
|
|
|
|
become: true
|
|
|
|
shell: pacman -Syu --noconfirm
|
|
|
|
when: package_manager == 'yay' or 'yay' in group_names
|
2022-03-14 08:30:53 +00:00
|
|
|
|
2022-12-16 15:39:49 +00:00
|
|
|
- name: Add some repos (alpine)
|
|
|
|
become: true
|
|
|
|
shell: |
|
|
|
|
grep -R 'testing' /etc/apk/repositories
|
|
|
|
if [ $? == 1 ]; then
|
|
|
|
echo 'https://dl-cdn.alpinelinux.org/alpine/edge/testing'\
|
|
|
|
>>/etc/apk/repositories
|
|
|
|
fi
|
|
|
|
when: "'alpine' in group_names"
|
|
|
|
tags: update alpine
|
2022-03-14 08:30:53 +00:00
|
|
|
|
2022-12-16 15:39:49 +00:00
|
|
|
- name: Update and upgrade xbps packages
|
|
|
|
become: true
|
|
|
|
shell: xbps-install -Suv
|
|
|
|
when: package_manager == 'xbps' or 'xbps' in group_names
|
|
|
|
tags: update
|
2022-03-14 08:30:53 +00:00
|
|
|
|
2022-12-16 15:39:49 +00:00
|
|
|
- name: Update and upgrade apk packages
|
|
|
|
become: true
|
|
|
|
apk:
|
|
|
|
update_cache: true
|
|
|
|
upgrade: true
|
|
|
|
when: package_manager == 'apk' or 'apk' in group_names
|
|
|
|
tags: update
|
|
|
|
|
|
|
|
- name: Update and upgrade apt packages
|
|
|
|
become: true
|
|
|
|
apt:
|
|
|
|
update_cache: true
|
|
|
|
upgrade: true
|
|
|
|
when: package_manager == 'apt' or 'apt' in group_names
|
|
|
|
tags: update
|