summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruvok cheetah2023-10-31 13:38:31 +0100
committeruvok cheetah2023-10-31 13:38:31 +0100
commit7c14e79aa82bb6ce48d7ddcce4db31370b11930c (patch)
treec08c63e5bf4123e94ff2bcc3ad85b4dd102cc563
parent5efd5ea54a0b540a93317a0c0dcae948469c7295 (diff)
Prepare python installation when bootstrapping
-rw-r--r--initial-deploy.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/initial-deploy.yml b/initial-deploy.yml
index 23a9f8f..6e6cdce 100644
--- a/initial-deploy.yml
+++ b/initial-deploy.yml
@@ -2,6 +2,10 @@
gather_facts: false
hosts: "{{ target }}"
tasks:
+ - name: Install Python if not already installed
+ raw: test -e /usr/bin/python3 || (apt -y update && apt install -y python3-minimal)
+ changed_when: false
+ failed_when: false
- name: Install sudo package
package:
name: "sudo"