GitHub Action for linting ansible roles/playbooks with ansible-later
To use the action, create
name: Ansible Later # feel free to pick your own name
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: run ansible-later action
uses: patrickjahns/ansible-later-action@master
with:
config: .later.yml
path: **/*.yml
The following optional variables can be defined
-
config (optional)
Path to the ansible-later configuration file to use. If omitted, ansible-later will look for the default .later.yml file, or if not found, fallback to the inbuilt default configuration
-
path (optional)
The path of the files/folders to be inspected by ansible-later
examples:
- lint all files in the folder
tasks
path: tasks
- lint all files ending with .yml in all subfolders
path: **/*.yml
If omitted, ansible-later will try to lint all file in the working directory
- lint all files in the folder
The Dockerfile and associated scripts and documentation in this project are released under the MIT.