From 7a5328cfec0a6cd4df99f42637ec1afc76b0e055 Mon Sep 17 00:00:00 2001 From: chrisjsimpson Date: Sun, 12 Nov 2023 17:21:57 +0000 Subject: [PATCH] Ref #13 ensure python present on target (alpine) during bootstrap --- src/playbooks/servers.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/playbooks/servers.yaml b/src/playbooks/servers.yaml index 02a0393..c91a2a2 100644 --- a/src/playbooks/servers.yaml +++ b/src/playbooks/servers.yaml @@ -6,11 +6,18 @@ # - hosts: servers become: true + gather_facts: false tasks: - name: Debug ansible.builtin.debug: msg: "Running servers playbook" + + - name: Install python + # TODO: Consider installing python3 during the alpine netboot image build instead of here + raw: test -e /usr/bin/python3 || apk add python3 + changed_when: false + - name: Configure NTP client for time synchronization command: setup-ntp busybox