- Add multi-environment architecture (homelab + production) - Create production environment (mini-vps) for client projects - Create homelab playbook for arch-vps services - Create production playbook for mini-vps services - Move sigvild-gallery from homelab to production - Restructure variables: group_vars/production + host_vars/arch-vps - Add backup-sigvild.yml playbook with auto-restore functionality - Fix restore logic to check for data before creating directories - Add manual variable loading workaround for Ansible 2.20 - Update all documentation for multi-environment setup - Add ADR-007 documenting multi-environment architecture decision
30 lines
767 B
YAML
30 lines
767 B
YAML
---
|
|
# Production Services Deployment
|
|
#
|
|
# Deploys production services requiring high uptime to mini-vps including:
|
|
# - Caddy web server
|
|
# - Sigvild Gallery (wedding photo gallery)
|
|
#
|
|
# Usage:
|
|
# ansible-playbook playbooks/production.yml
|
|
|
|
# - import_playbook: security.yml
|
|
|
|
- name: Deploy Production Services
|
|
hosts: production
|
|
become: true
|
|
gather_facts: true
|
|
|
|
tasks:
|
|
# Workaround: Manually load group_vars due to Ansible 2.20 variable loading issue
|
|
- name: Load production group variables
|
|
include_vars:
|
|
dir: "{{ playbook_dir }}/../group_vars/production"
|
|
extensions: ['yml']
|
|
tags: always
|
|
|
|
- name: Deploy Sigvild Gallery
|
|
include_role:
|
|
name: sigvild-gallery
|
|
tags: ['sigvild', 'gallery', 'wedding']
|