2f5e3653d6
- refactor playbooks to follow best practices - implement Ansible Vault for secrets management - replace direct service restarts with handlers - add Molecule testing framework with Docker lint compliance: - fix all ansible-lint violations (FQCN, booleans, file modes) - remove duplicate tasks and improve structure - enforce consistent task ordering and formatting - add noqa where necessary for edge cases documentation: - add REFACTORING.md and VAULT_GUIDE.md - improve per-role documentation all playbooks now pass ansible-lint production profile with 0 violations
30 lines
735 B
YAML
30 lines
735 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install deps
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y python3 python3-pip ansible docker.io
|
|
|
|
- name: Python syntax check
|
|
run: |
|
|
find migration-validation-framework -name "*.py" -exec python3 -m py_compile {} \;
|
|
|
|
- name: Ansible syntax check
|
|
run: |
|
|
ansible-playbook -i enterprise-infra-simulator/inventory/hosts.ini \
|
|
--syntax-check enterprise-infra-simulator/playbooks/*.yml
|
|
|
|
- name: Docker compose validation
|
|
run: |
|
|
docker compose -f observability-stack/docker-compose.yml config |