aboutsummaryrefslogtreecommitdiffstats
path: root/roles/alpine_glibc/tasks
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-11-21 16:15:15 +0100
committerbinary <me@rgoncalves.se>2020-11-21 16:15:15 +0100
commit44ede44c438d1a9d10b90032d8decb42bfe5ce49 (patch)
tree2d71fc2439fc5e5e61cd82b6168aee79bb884823 /roles/alpine_glibc/tasks
parent77eef6041db574d65c4dd6f5af1468db7b8fbb36 (diff)
downloadinfrastructure-44ede44c438d1a9d10b90032d8decb42bfe5ce49.tar.gz
Add glibc role for alpine.
Diffstat (limited to 'roles/alpine_glibc/tasks')
-rw-r--r--roles/alpine_glibc/tasks/main.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/roles/alpine_glibc/tasks/main.yml b/roles/alpine_glibc/tasks/main.yml
new file mode 100644
index 0000000..f2e7fbc
--- /dev/null
+++ b/roles/alpine_glibc/tasks/main.yml
@@ -0,0 +1,20 @@
+
+# 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/2.32-r0/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
remember that computers suck.