ansible/docs/guides/custom-roles.md
ilia 3415340e26
All checks were successful
CI / skip-ci-check (pull_request) Successful in 1m18s
CI / lint-and-test (pull_request) Successful in 1m21s
CI / ansible-validation (pull_request) Successful in 2m43s
CI / secret-scanning (pull_request) Successful in 1m19s
CI / dependency-scan (pull_request) Successful in 1m23s
CI / sast-scan (pull_request) Successful in 2m28s
CI / license-check (pull_request) Successful in 1m20s
CI / vault-check (pull_request) Successful in 2m21s
CI / playbook-test (pull_request) Successful in 2m19s
CI / container-scan (pull_request) Successful in 1m48s
CI / sonar-analysis (pull_request) Successful in 1m26s
CI / workflow-summary (pull_request) Successful in 1m17s
Refactor playbooks: servers/workstations, split monitoring, improve shell
2025-12-31 23:13:03 -05:00

681 B
Raw Blame History

Custom roles guide

This repo is designed to be extended by adding new roles under roles/.

Role structure

Follow the standard Ansible role layout:

roles/<role_name>/
├── defaults/main.yml
├── handlers/main.yml
├── tasks/main.yml
├── templates/
├── files/
└── README.md

Where to wire a new role

  • Add it to the relevant playbook under playbooks/ (or create a new playbook if its a major concern).
  • Prefer tagging the role at inclusion time so make <feature> targets can use --tags.

Standards (canonical)

  • project-docs/standards.md
  • project-docs/decisions.md (add an ADR entry for significant changes)