Skip to content

fix: Resolve remaining ansible-lint warnings and enforce all rules#21

Merged
ryanspletzer merged 1 commit intomainfrom
fix/remaining-ansible-lint-warnings
Mar 1, 2026
Merged

fix: Resolve remaining ansible-lint warnings and enforce all rules#21
ryanspletzer merged 1 commit intomainfrom
fix/remaining-ansible-lint-warnings

Conversation

@ryanspletzer
Copy link
Owner

Summary

  • Replace git config --global commands with community.general.git_config module across all 4 playbooks
  • Add FQCN (ansible.builtin.meta) and name: to the meta: refresh_inventory task (macOS)
  • Break long Jinja2 filter chains (>200 chars) into >- folded block scalars (ubuntu/debian/fedora)
  • Add register + changed_when + failed_when to custom command and script tasks (ubuntu/debian/fedora)
  • Suppress command-instead-of-module on git lfs install tasks (no Ansible module exists for git-lfs)
  • Suppress command-instead-of-shell on custom command tasks (shell intentionally needed for arbitrary user commands)
  • Remove trailing blank line in ubuntu/setup.yaml
  • Remove entire warn_list from .ansible-lint — all 7 rules now enforced at error level

Test plan

  • CI validate job passes with zero warnings/annotations
  • All integration tests (macOS, ubuntu, debian, fedora) pass
  • Verify git config still applied correctly via community.general.git_config module

🤖 Generated with Claude Code

Replace git config commands with community.general.git_config module,
add FQCN and name to meta task, break long Jinja2 lines with folded
scalars, add changed_when to custom command/script tasks, and suppress
rules where shell or command usage is intentional. Remove warn_list
from .ansible-lint — all rules now enforced at error level.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ryanspletzer ryanspletzer merged commit c7a3a0b into main Mar 1, 2026
9 checks passed
@ryanspletzer ryanspletzer deleted the fix/remaining-ansible-lint-warnings branch March 1, 2026 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant