mirror of
https://github.com/dredx/prole.git
synced 2026-09-23 12:03:59 +00:00
- Add k3s start/stop Ansible playbooks and roles. - Implement OpenTofu initialization scripts and k8s manifests. - Update ncurses installer with OpenTofu support and improved k3s integration. - Add mode support (--mode) to etc/ initialization scripts. - Update prole-db with recovery, barman objectstore, and SSH OpenBao support. - Refine k8s manifests for OpenBao and prole-db.
17 lines
422 B
YAML
17 lines
422 B
YAML
---
|
|
- name: Start k3s on a single host
|
|
hosts: k3s_hosts
|
|
become: true
|
|
serial: 1
|
|
pre_tasks:
|
|
- name: Require a single host target
|
|
ansible.builtin.assert:
|
|
that:
|
|
- ansible_play_hosts_all | length == 1
|
|
fail_msg: "This playbook targets one host. Use --limit <host>."
|
|
tasks:
|
|
- name: Start k3s service
|
|
ansible.builtin.import_role:
|
|
name: k3s
|
|
tasks_from: start
|