refactor: use ansible native incus connection

This commit is contained in:
2026-06-23 21:17:21 +01:00
parent f58488e5fd
commit c00faad987
5 changed files with 32 additions and 93 deletions
+22
View File
@@ -0,0 +1,22 @@
---
- name: Bootstrap - Stage 1
hosts: all
gather_facts: false
tasks:
- name: Install Python 3
ansible.builtin.raw: |
if ! command -v python3 >/dev/null 2>&1; then
apk add --no-cache python3
fi
register: apk_result
changed_when: "'OK' in apk_result.stdout or 'Installing' in apk_result.stdout"
- name: Bootstrap - Stage 2
hosts: all
tasks:
- name: Install Python 3 Libraries
ansible.builtin.package:
name: "{{ item }}"
loop:
- py3-yaml
- py3-kubernetes