Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
profile: basic

skip_list:
# SCREAMING_SNAKE is the documented convention for infrastructure-wide vars
- var-naming[pattern]
# dot-notation role naming is the documented convention (e.g. software.install.wazuh)
- role-name
# dot-notation roles produce nonsensical prefix requirements
- var-naming[no-role-prefix]
# pre-existing task naming convention: lowercase names throughout catalog
- name[casing]
# large legacy codebase: hundreds of unnamed tasks, out of scope for CI hardening
- name[missing]
# plays in catalog bundles do not require names
- name[play]
# Jinja template syntax in task names is intentional
- name[template]
# cosmetic key ordering; pre-existing throughout catalog
- key-order[task]
# partial become (become without become_user) is pre-existing throughout catalog
- partial-become[task]
# octal file permission values are intentional (e.g. 0644, 0755)
- yaml[octal-values]
# pre-existing shell usage throughout catalog — all cases are intentional
- command-instead-of-shell
# pre-existing free-form module calls throughout catalog
- no-free-form
# pre-existing {{ var}} spacing in catalog roles — cosmetic only
- jinja[spacing]

warn_list:
- yaml[line-length]
- yaml[truthy]
- yaml[trailing-spaces]
- yaml[empty-lines]
- yaml[new-line-at-end-of-file]
- yaml[colons]
- yaml[comments]
- yaml[indentation]
- risky-shell-pipe

# catalog roles that reference themselves in test.yml or cross-repo roles not checked out in CI
mock_roles:
- soft.install.warmup.local_bin
- software.install.dotFiles
- system.checks.overview
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
labels: [dependencies, ci]
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI
on:
push:
branches: [main, dev, 'feat/**', 'fix/**']
pull_request:
branches: [main, dev]
jobs:
ansible-lint:
name: Ansible Lint
runs-on: ubuntu-latest
container:
image: python:3.13-slim
steps:
- run: apt-get update && apt-get install -y --no-install-recommends git
- uses: actions/checkout@v4
- run: pip install --no-cache-dir ansible-lint
- run: ansible-lint 02_ansible_layer/
Loading