💅 Update the update (role)
This commit is contained in:
parent
7c6181cf14
commit
92a48a403b
@ -1,42 +1,47 @@
|
|||||||
|
---
|
||||||
|
- name: Update and upgrade package managed stuff
|
||||||
|
# when: update
|
||||||
|
block:
|
||||||
# - name: Install yay (AUR helper)
|
# - name: Install yay (AUR helper)
|
||||||
|
|
||||||
# - name: Update and upgrade pacman packages
|
# - name: Update and upgrade yay packages
|
||||||
# become: yes
|
# yay: update_cache=yes upgrade=yes
|
||||||
# pacman:
|
# when: package_manager == 'yay' or 'yay' in group_names
|
||||||
# executable: yay
|
|
||||||
# update_cache: yes
|
|
||||||
# upgrade: yes
|
|
||||||
# when: 'pacman'
|
|
||||||
# tags: pacman
|
|
||||||
|
|
||||||
- name: Update and upgrade pacman packages
|
- name: Update and upgrade pacman packages
|
||||||
become: yes
|
become: true
|
||||||
shell: pacman -Syu --noconfirm
|
shell: pacman -Syu --noconfirm
|
||||||
when: package_manager == 'pacman' or 'pacman' in group_names
|
when: package_manager == 'yay' or 'yay' in group_names
|
||||||
tags: update
|
|
||||||
|
|
||||||
- name: Add some repos (alpine)
|
- name: Add some repos (alpine)
|
||||||
become: yes
|
become: true
|
||||||
shell: |
|
shell: |
|
||||||
grep -R 'testing' /etc/apk/repositories
|
grep -R 'testing' /etc/apk/repositories
|
||||||
if [ $? == 1 ]; then
|
if [ $? == 1 ]; then
|
||||||
echo 'https://dl-cdn.alpinelinux.org/alpine/edge/testing'>>/etc/apk/repositories
|
echo 'https://dl-cdn.alpinelinux.org/alpine/edge/testing'\
|
||||||
|
>>/etc/apk/repositories
|
||||||
fi
|
fi
|
||||||
when: "'alpine' in group_names"
|
when: "'alpine' in group_names"
|
||||||
tags: update alpine
|
tags: update alpine
|
||||||
|
|
||||||
|
- name: Update and upgrade xbps packages
|
||||||
|
become: true
|
||||||
|
shell: xbps-install -Suv
|
||||||
|
when: package_manager == 'xbps' or 'xbps' in group_names
|
||||||
|
tags: update
|
||||||
|
|
||||||
- name: Update and upgrade apk packages
|
- name: Update and upgrade apk packages
|
||||||
become: yes
|
become: true
|
||||||
apk:
|
apk:
|
||||||
update_cache: yes
|
update_cache: true
|
||||||
upgrade: yes
|
upgrade: true
|
||||||
when: package_manager == 'apk' or 'apk' in group_names
|
when: package_manager == 'apk' or 'apk' in group_names
|
||||||
tags: update
|
tags: update
|
||||||
|
|
||||||
- name: Update and upgrade apt packages
|
- name: Update and upgrade apt packages
|
||||||
become: yes
|
become: true
|
||||||
apt:
|
apt:
|
||||||
update_cache: yes
|
update_cache: true
|
||||||
upgrade: yes
|
upgrade: true
|
||||||
when: package_manager == 'apt' or 'apt' in group_names
|
when: package_manager == 'apt' or 'apt' in group_names
|
||||||
tags: update
|
tags: update
|
Loading…
Reference in New Issue
Block a user