aboutsummaryrefslogtreecommitdiffstats
path: root/playbooks/prerequisites.yml
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-05 17:49:43 +0000
committerRomain Gonçalves <me@rgoncalves.se>2021-12-05 17:51:10 +0000
commitf462775306d705e854a0755c4889c0dcc64781e7 (patch)
tree128237dd62261ad2378a40412e64d2bef56116e7 /playbooks/prerequisites.yml
parent7756662e63e7ff8b51a505a64384d224602a34ae (diff)
downloadinfrastructure-f462775306d705e854a0755c4889c0dcc64781e7.tar.gz
playbooks: Scaffold new hosts with python package
Diffstat (limited to 'playbooks/prerequisites.yml')
-rw-r--r--playbooks/prerequisites.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/playbooks/prerequisites.yml b/playbooks/prerequisites.yml
new file mode 100644
index 0000000..ac4d58d
--- /dev/null
+++ b/playbooks/prerequisites.yml
@@ -0,0 +1,12 @@
+- hosts: all
+ gather_facts: false
+ tasks:
+ - name: bruteforce python installation with all packages possiblity
+ raw: |
+ ! pkg_add python3 &&
+ ! pkg install python3 &&
+ apk add python
+ register: result
+ ignore_errors: true
+ failed_when: result.rc not in [0, 1]
+ poll: 0
remember that computers suck.