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