From f462775306d705e854a0755c4889c0dcc64781e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sun, 5 Dec 2021 17:49:43 +0000 Subject: playbooks: Scaffold new hosts with python package --- playbooks/prerequisites.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 playbooks/prerequisites.yml (limited to 'playbooks') 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 -- cgit v1.2.3