2022-03-14 08:30:53 +00:00
|
|
|
- name: Update and upgrade pacman packages
|
|
|
|
pacman:
|
|
|
|
update_cache: yes
|
|
|
|
upgrade: yes
|
|
|
|
when: "'pacman' in group_names"
|
|
|
|
tags: pacman
|
|
|
|
|
|
|
|
- name: Add some repos (alpine)
|
|
|
|
become: yes
|
|
|
|
shell: |
|
|
|
|
grep -R 'testing' /etc/apk/repositories
|
2022-03-14 08:36:49 +00:00
|
|
|
[ $? == 1 ] && echo 'https://dl-cdn.alpinelinux.org/alpine/edge/testing'>>/etc/apk/repositories
|
2022-03-14 08:30:53 +00:00
|
|
|
when: "'alpine' in group_names"
|
|
|
|
tags: alpine
|
|
|
|
|
|
|
|
- name: Update and upgrade apk packages
|
|
|
|
become: true
|
|
|
|
apk:
|
|
|
|
update_cache: yes
|
|
|
|
upgrade: yes
|
|
|
|
when: "'apk' in group_names or 'alpine' in group_names"
|
|
|
|
tags: apk
|
|
|
|
|
|
|
|
- name: Update and upgrade apt packages
|
|
|
|
become: true
|
|
|
|
apt:
|
|
|
|
update_cache: yes
|
|
|
|
upgrade: yes
|
|
|
|
when: "'apt' in group_names"
|
|
|
|
tags: apt
|