chore: add Ansible project scaffolding

Add ansible.cfg (roles_path, inventory, become, fact caching),
requirements.yml placeholder for future collections, .gitignore for
Ansible artifacts, and .ansible-lint config for code quality.

🤖 Generated with [Crush](https://github.com/charmassociates/crush)

Assisted-by: GLM-5 via Crush <crush@charm.land>
This commit is contained in:
2026-07-30 12:15:30 -05:00
parent 81a811aedd
commit 7a2ad022c8
4 changed files with 52 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
---
# ansible-lint configuration for KNELIAC
# https://ansible.readthedocs.io/projects/lint/
# Exclude vendored config files from formatting rules (they're content, not YAML)
exclude_paths:
- .git/
- .fact_cache/
- LICENSE
# Use the default ruleset but be practical about it
skip_list:
# We use inline templates and command modules intentionally
- command-instead-of-shell # Some commands need shell for pipes
- risky-shell-pipe # Legacy script compat; we use set -o pipefail
warn_list:
- experimental
- name[casing] # Our task names use sentence case intentionally
+9
View File
@@ -0,0 +1,9 @@
# Ansible / AWX local artifacts
.fact_cache/
*.retry
*.log
# Editor / OS
.DS_Store
*.swp
*~
+17
View File
@@ -0,0 +1,17 @@
[defaults]
# Where AWX/ansible looks for roles when not installed as collections.
roles_path = ./roles
inventory = ./inventory/hosts.yml
host_key_checking = False
# Use the default configured Python interpreter on each host.
interpreter_python = auto_silent
# Make output readable.
stdout_callback = yaml
gathering = smart
fact_caching = jsonfile
fact_caching_connection = ./.fact_cache
fact_caching_timeout = 86400
[privilege_escalation]
become = True
become_method = sudo
+7
View File
@@ -0,0 +1,7 @@
# requirements.yml
#
# External Ansible collections this project depends on. Currently empty —
# the roles in ./roles/ are self-contained and use only ansible.builtin.*
# modules. Add collections here as the STIG/CMMC/FedRAMP/ITAR hardening
# library grows (e.g. ansible.posix, community.crypto, community.general).
collections: []