This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
switch host #732
This file contains 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: | |
pull_request: | |
paths: | |
- 'ansible/**' | |
- '.tool-versions' | |
- '.github/actions/**' | |
- '.github/workflows/lint-ansible.yaml' | |
push: | |
branches: | |
- master | |
paths: | |
- 'ansible/**' | |
- '.tool-versions' | |
- '.github/actions/**' | |
- '.github/workflows/lint-ansible.yaml' | |
env: | |
PY_COLORS: '1' | |
jobs: | |
job: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/setup | |
- name: Install ansible role/collection dependencies | |
working-directory: ./ansible | |
run: ./install_dependencies.sh | |
- name: Lint | |
working-directory: ./ansible | |
run: > | |
ansible-lint playbook.yaml | |
--exclude vendor | |
--exclude '*.sops.yaml' | |
--profile production | |
--skip-list 'name[play]' | |
--skip-list 'meta-no-info' | |
--skip-list 'yaml[line-length]' | |
--skip-list 'command-instead-of-shell' |