aboutsummaryrefslogtreecommitdiffstats
path: root/roles/alpine_glibc/tasks/main.yml
blob: 35aa373508a38b3206afa0feaeff40f060d4eb17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

# alpine glibc ~~ roles/alpine_glibc/tasks/main.yml
# install glibc for alpine host

---

- name: add pkg-glibc public key
  shell: wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub

- name: download pkg-glibc
  get_url:
    url: "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/{{ glibc_version }}/glibc-{{ glibc_version }}.apk"
    dest: /tmp/glibc-latest.apk
  register: pkg

- name: install pkg-glibc
  shell: apk add glibc-latest.apk
  args:
    chdir: /tmp
  when: pkg.changed

- name: cleanup temporary file
  file:
    path: /tmp/glibc-latest.apk
    state: absent
remember that computers suck.