/ansible-later-action

🚀 Github action to lint ansible roles/playbooks with ansible-later

Primary LanguageShellMIT LicenseMIT

🚀 Ansible Later for Github Action

License: MIT Test & Build & Release GitHub tag

GitHub Action for linting ansible roles/playbooks with ansible-later

Usage

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

Variables

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

License

The Dockerfile and associated scripts and documentation in this project are released under the MIT.