Common Node ansible playbook files, inclusive with required system

packages
This commit is contained in:
2026-09-01 13:22:19 +03:00
parent 8c585fb355
commit 0be9a30118
23 changed files with 170 additions and 53 deletions
+24
View File
@@ -0,0 +1,24 @@
- name: Install system utils
ansible.builtin.apt:
name:
- xz-utils
- git
- modemmanager
state: present
update_cache: true
become: true
register: apt_result
until: apt_result is succeeded
retries: 7
delay: 5
- name: Check if k3s is installed
ansible.builtin.stat:
path: /usr/local/bin/k3s
register: k3s_binary
- name: Install k3s
ansible.builtin.script:
cmd: scripts/install-k3s.sh
become: true
when: not k3s_binary.stat.exists