summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"