POTE/ansible/inventory.example.yml
ilia d2ae095fcf
Some checks failed
CI / lint-and-test (push) Failing after 1m7s
CI / security-scan (push) Failing after 1m5s
CI / dependency-scan (push) Successful in 6m39s
CI / docker-build-test (push) Failing after 1m13s
CI / workflow-summary (push) Successful in 1m5s
Add complete Ansible integration configuration
NEW: Complete Ansible role for automated POTE deployment

Files Added:
============
📁 ansible/
├── README.md - Overview and usage
├── roles/pote/defaults/main.yml -  200+ variables defined
├── group_vars/
│   ├── all.yml - Common variables
│   ├── development.yml - Dev environment (branch: dev)
│   ├── staging.yml - QA environment (branch: qa)
│   └── production.yml - Prod environment (branch: main)
├── inventory.example.yml - Example inventory
└── vault.example.yml - Example secrets

📄 ANSIBLE_INTEGRATION.md - Complete integration guide

What Ansible Needs to Know:
============================
 Git repository & branch (per environment)
 Application user & paths
 Python & system dependencies
 Database configuration (per environment)
 Email/SMTP settings
 Monitoring configuration
 Cron/automation schedules
 Deployment options
 Security settings
 Feature flags
 Environment-specific overrides

Variable Categories (11):
==========================
1. Project basics (5 vars)
2. User & paths (7 vars)
3. Python & dependencies (3 lists)
4. Database (8 vars)
5. Email/SMTP (6 vars)
6. Monitoring (2 vars)
7. Logging (2 vars)
8. Cron/automation (7 vars)
9. Deployment (6 vars)
10. Security (4 vars)
11. Feature flags (4 vars)

Integration:
============
 Compatible with base_os role
 Multi-environment support (dev/qa/prod)
 Branch-based deployment (dev→qa→main)
 Ansible Vault for secrets
 Sensible defaults for everything
 Minimal required config (3 vars!)

Usage:
======
ansible-playbook deploy-pote.yml --limit development
ansible-playbook deploy-pote.yml --limit staging
ansible-playbook deploy-pote.yml --limit production

Ready for your Ansible auto-configure system!
2025-12-24 22:04:36 -05:00

60 lines
1.9 KiB
YAML

---
# =============================================================================
# POTE Ansible Inventory Example
# =============================================================================
# Copy this to inventory.yml and customize for your environment
# =============================================================================
all:
children:
# -------------------------------------------------------------------------
# Development Environment
# -------------------------------------------------------------------------
development:
hosts:
pote-dev:
ansible_host: 10.0.10.100
ansible_user: root
ansible_port: 22
# Override defaults if needed
# pote_daily_report_time: "0 10"
# log_level: "DEBUG"
# -------------------------------------------------------------------------
# Staging/QA Environment
# -------------------------------------------------------------------------
staging:
hosts:
pote-qa:
ansible_host: 10.0.10.101
ansible_user: root
ansible_port: 22
# -------------------------------------------------------------------------
# Production Environment
# -------------------------------------------------------------------------
production:
hosts:
pote-prod:
ansible_host: 10.0.10.95
ansible_user: root
ansible_port: 22
# Production-specific overrides
# pote_backup_retention_days: 180
# ---------------------------------------------------------------------------
# Global Variables (apply to all hosts)
# ---------------------------------------------------------------------------
vars:
ansible_python_interpreter: /usr/bin/python3
# SSH settings
ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
# Become settings
ansible_become: yes
ansible_become_method: sudo