refactor: switch to ubuntu 26.04 lts
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
---
|
||||
ansible_python_interpreter: /usr/bin/python3
|
||||
@@ -2,4 +2,4 @@
|
||||
plugin: community.general.incus
|
||||
strict: true
|
||||
remotes:
|
||||
- local:deskpi-cluster
|
||||
- local:home-infrastructure
|
||||
@@ -1,3 +0,0 @@
|
||||
---
|
||||
- name: Provision with Incus
|
||||
ansible.builtin.import_playbook: playbooks/common.yaml
|
||||
@@ -1,22 +0,0 @@
|
||||
---
|
||||
- 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
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
- name: Install required provision packages
|
||||
ansible.builtin.import_tasks: packages.yaml
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- name: Upgrade all packages
|
||||
ansible.builtin.package:
|
||||
name: '*'
|
||||
state: latest
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- name: Common
|
||||
hosts: all
|
||||
roles:
|
||||
- common
|
||||
Reference in New Issue
Block a user