Skip to content

πŸš€ Github action to lint ansible roles/playbooks with ansible-later

License

Notifications You must be signed in to change notification settings

patrickjahns/ansible-later-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date
Oct 12, 2020
Feb 12, 2020
Feb 15, 2020
Feb 15, 2020
Sep 10, 2021
Feb 11, 2020
Sep 27, 2020
Feb 11, 2020
Feb 11, 2020
Feb 28, 2022

Repository files navigation

πŸš€ 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.