- Created ansible.cfg for configuration settings - Added inventory.yml for host definitions - Implemented bootstrap playbook for Minisforum setup - Developed setup playbook for K3s installation - Defined common role with user and package management tasks - Established K3s server role with configuration and installation tasks - Included Traefik Helm values for ingress management
19 lines
516 B
YAML
19 lines
516 B
YAML
---
|
|
# Run: ansible-playbook -i ansible/inventory.yml ansible/playbooks/bootstrap-minisforum.yml
|
|
# Requires: SSH access to 192.168.7.7 as root (or a user with NOPASSWD sudo)
|
|
#
|
|
# What this does:
|
|
# - Creates the 'nik' user with sudo access
|
|
# - Hardens SSH (no password auth, no root login)
|
|
# - Installs base packages
|
|
# - Configures UFW firewall
|
|
# - Creates /data/* directories for persistent volumes
|
|
|
|
- name: Bootstrap Minisforum
|
|
hosts: minisforum
|
|
become: true
|
|
gather_facts: true
|
|
|
|
roles:
|
|
- common
|