Ansible Lint #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Ansible Lint | |
| on: [workflow_dispatch] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Run ansible-lint on a specific directory | |
| # It is recommended to pin the action to a specific version tag (e.g., v6) | |
| uses: ansible/ansible-lint@main | |
| with: | |
| # Specify the directory you want to lint | |
| working_directory: './playbooks' | |
| # Optional: Add extra arguments to the ansible-lint command, e.g., to enable all rules | |
| args: "" |