---
# The exclude_paths does not appear to be working in pre-commit
# this issue describes similar behavior but suggested fix doesn't work
# https://github.com/ansible/ansible-lint/issues/371
# exclude_paths:
#  - roles/master_role_example/
exclude_paths:
  - .ansible/
  - ".github/"
  - ".ansible/"
  - "changelogs/"
  - "tests/satellite_output"
  - "tests/collections/ansible_collections"
  - "configs"
# parseable: true
use_default_rules: true
strict: true
profile: production
# https://github.com/ansible/ansible-lint/issues/808
# with verbosity set to 1, its dumping 'unknown file type messages'
# verbosity: 1
skip_list:
  - fqcn[keyword]
  - meta-runtime # requires_ansible in meta/runtime.yml vs galaxy.yml dependencies
  - sanity[cannot-ignore] # We're only ignoring sanity rules when we have to
  # Playbooks use group/redhat.satellite.satellite module_defaults; Galaxy Importer
  # lint runs without that collection installed, so syntax-check cannot resolve the group.
  - internal-error
  # Public CaC / collection API uses satellite_* and satellite_configuration_* (not
  # <role>_*), and many task register/set_fact names use __* temps. With strict:true,
  # .ansible-lint-ignore still counts those as warnings and fails the run — skip here.
  # Galaxy Importer also excludes var-naming via -x. Role-private defaults should still
  # use <role>_ prefixes by convention (e.g. dispatch_roles_name_skips_extra).
  - var-naming[no-role-prefix]
kinds:
  - playbooks: "playbooks/*.{yml,yaml}"
  - playbooks: "**/examples/templates/*.{yml,yaml}"
  - playbooks: "**/examples/*.{yml,yaml}"
  - playbooks: "**/examples/automatetheautomation/*.{yml,yaml}"
  - tasks: "**/examples/tasks/*.yml"
  - vars: "**/examples/automatetheautomation/orgs_vars/**/*.yml"
  - vars: "**/examples/configs/*.yml"
  - vars: "**/examples/configs_export_model/*.yml"
  - vars: "**/examples/vars/*.yml"
  - vars: "**/roles/**/tests/configs/*.yml"
# mock_modules:
#   - redhat.satellite.satellite
...
