diff --git a/.github/workflows/ansible-lint.yml b/.github/workflows/ansible-lint.yml index 282229f..c5f3234 100644 --- a/.github/workflows/ansible-lint.yml +++ b/.github/workflows/ansible-lint.yml @@ -34,5 +34,9 @@ jobs: - name: Install collection dependencies run: ansible-galaxy collection install -r ${{ github.run_id }}.yml - - uses: pre-commit/action@v3.0.1 + + - uses: ansible/ansible-lint@v24 + with: + working_directory: . + args: --config=.ansible-lint.yml ... diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 30d8500..30dded8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,17 +11,4 @@ repos: hooks: - id: gitleaks stages: [manual, push] - - repo: 'https://github.com/ansible-community/ansible-lint.git' - rev: v24.2.0 - hooks: - - id: ansible-lint - pass_filenames: false - always_run: true - entry: "ansible-lint" - args: - - "--profile=production" - - "-c=.ansible-lint.yml" - additional_dependencies: - - "ansible-core>=2.14" - - "yamllint>=1.29,<2.0" ...