From 600c3d9acf316d78041f4bc918e53034bf80112c 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 b8b51cb..b217f06 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