infra/ansible
2025-11-16 09:34:06 -06:00
..
.vscode add ansible 2025-05-30 13:24:38 -05:00
baseline/proxmox add ansible 2025-05-30 13:24:38 -05:00
collections add ansible 2025-05-30 13:24:38 -05:00
group_vars Refine bootstrap and consolidate base role management 2025-10-15 11:47:34 -05:00
host_vars updates 2025-10-14 14:35:33 -05:00
inventories/k8s-cluster update 2025-10-01 17:06:51 -05:00
roles update 2025-11-16 09:34:06 -06:00
scripts updates 2025-08-02 11:14:56 -05:00
vars ansible cleanup 2025-07-23 12:34:33 -05:00
.ansible-lint add ansible 2025-05-30 13:24:38 -05:00
.DS_Store add ansible 2025-05-30 13:24:38 -05:00
.gitignore cleanup 2025-07-23 12:38:38 -05:00
ansible-bootstrap.cfg ansible cleanup 2025-07-23 12:34:33 -05:00
ansible.cfg add ansible 2025-05-30 13:24:38 -05:00
bootstrap-hosts add ansible 2025-05-30 13:24:38 -05:00
bootstrap.sh add ansible 2025-05-30 13:24:38 -05:00
bootstrap.yml Refine bootstrap and consolidate base role management 2025-10-15 11:47:34 -05:00
CLAUDE.md updates 2025-10-14 14:35:33 -05:00
deploy-k8s-cluster.sh k8s start 2025-07-24 09:55:24 -05:00
env.sh add ansible 2025-05-30 13:24:38 -05:00
hosts add camper 2025-11-10 10:01:36 -06:00
install-k3s-node3.yml updates 2025-10-05 13:12:28 -05:00
LICENSE.md add ansible 2025-05-30 13:24:38 -05:00
Makefile ansible cleanup 2025-07-23 12:34:33 -05:00
manual-k3s-install.txt updates 2025-10-05 13:12:28 -05:00
migrate-template-to-ceph.yml k3s deployment working 2025-07-24 16:29:33 -05:00
netbox.yml update 2025-10-01 17:06:51 -05:00
notes.txt add ansible 2025-05-30 13:24:38 -05:00
playbook.yml updates 2025-10-24 17:04:01 -05:00
playbook_handlers.yml ansible cleanup 2025-07-23 12:34:33 -05:00
postgres-readme.md updates 2025-07-27 11:35:59 -05:00
postgres-with-1password.yml updates 2025-08-02 11:14:56 -05:00
README.md ansible cleanup 2025-07-23 12:34:33 -05:00
requirements.yml k8s start 2025-07-24 09:55:24 -05:00
run.sh add ansible 2025-05-30 13:24:38 -05:00
setup-host.sh add ansible 2025-05-30 13:24:38 -05:00
setup-postgres-storage.yml updates 2025-08-02 11:14:56 -05:00
setup-proxmox-sudo.yml k8s start 2025-07-24 09:55:24 -05:00
site.yml updates 2025-08-02 11:14:56 -05:00
TODO.md cleanup 2025-07-23 12:38:38 -05:00

Ansible Infrastructure Management

This repository contains Ansible playbooks and roles for managing infrastructure across multiple environments.

Directory Structure

├── playbook.yml          # Main playbook for common configuration
├── general.yml           # General system setup playbook
├── bootstrap.yml         # Bootstrap playbook for new hosts
├── roles/               # Ansible roles
│   ├── base/           # Base configuration (users, SSH, system)
│   ├── general/        # General system configurations
│   ├── caddy/          # Caddy web server
│   ├── ns/             # Nameserver configuration
│   ├── resolvers/      # DNS resolver setup
│   └── ...             # Other roles
├── group_vars/         # Group-specific variables
├── host_vars/          # Host-specific variables
└── hosts               # Inventory file

## Quick Start

### Bootstrap a new host
```bash
# For hosts with existing user access
make bootstrap-init HOSTNAME=hostname ANSIBLE_HOST=ip_address

# For hosts with only root access
make bootstrap-init-root HOSTNAME=hostname ANSIBLE_HOST=ip_address

Run playbooks

# Run main playbook
./run.sh

# Run on specific host
ansible-playbook -l hostname playbook.yml

# Run with specific tags
ansible-playbook -t caddy playbook.yml

Inventory Groups

  • vntx_servers - VNTX network services
  • app_servers - Application servers
  • home_servers - Home network devices
  • tailscale_home - Devices using Tailscale VPN
  • caddy_servers - Servers running Caddy web server

Key Features

  • Automated user management with GitHub SSH key integration
  • Base package installation across all systems
  • Role-based configuration management
  • Support for multiple OS families (Debian, Ubuntu, AlmaLinux)
  • Tailscale VPN integration
  • Caddy web server with reverse proxy configuration