Fixed update role
Add testing repo to Alpine hosts
This commit is contained in:
@@ -4,14 +4,6 @@
|
||||
pacman: name={{ packages }} state=latest
|
||||
when: "'pacman' in group_names"
|
||||
tags: pacman
|
||||
- name: Add some repos (alpine)
|
||||
become: yes
|
||||
shell: cmd="cat > /etc/apk/repositories << EOF; $(echo)
|
||||
https://dl-cdn.alpinelinux.org/alpine/v$(cat /etc/alpine-release | cut -d'.' -f1,2)/main/
|
||||
https://dl-cdn.alpinelinux.org/alpine/v$(cat /etc/alpine-release | cut -d'.' -f1,2)/community/
|
||||
https://dl-cdn.alpinelinux.org/alpine/edge/testing/
|
||||
EOF"
|
||||
when: "'alpine' in group_names"
|
||||
- name: Install the good stuff (apk)
|
||||
apk: name={{ packages }} state=latest
|
||||
when: "'apk' in group_names or 'alpine' in group_names"
|
||||
|
Reference in New Issue
Block a user