Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/patrickjahns/ansible-later-action
🚀 Github action to lint ansible roles/playbooks with ansible-later
https://github.com/patrickjahns/ansible-later-action
action ansible ansible-later github-action linting
Last synced: about 1 month ago
JSON representation
🚀 Github action to lint ansible roles/playbooks with ansible-later
- Host: GitHub
- URL: https://github.com/patrickjahns/ansible-later-action
- Owner: patrickjahns
- License: mit
- Created: 2020-02-11T17:33:14.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T04:56:32.000Z (over 1 year ago)
- Last Synced: 2024-09-16T23:27:08.783Z (2 months ago)
- Topics: action, ansible, ansible-later, github-action, linting
- Language: Shell
- Size: 85.9 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🚀 Ansible Later for Github Action
[![License: MIT](https://img.shields.io/github/license/patrickjahns/ansible-later-action)](LICENSE)
![Test & Build & Release](https://github.com/patrickjahns/ansible-later-action/workflows/Test%20&%20Build%20&%20Release/badge.svg?event=release)
[![GitHub tag](https://img.shields.io/github/tag/patrickjahns/ansible-later-action.svg)](https://github.com/patrickjahns/ansible-later-action/tags)[GitHub Action](https://github.com/features/actions) for linting ansible roles/playbooks with [ansible-later](https://github.com/thegeeklab/ansible-later)
## Usage
To use the action, create
```yaml
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```
### VariablesThe following optional variables can be defined
- **config** (optional)Path to the [ansible-later configuration](https://ansible-later.geekdocs.de/configuration/defaults/) 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`
```yaml
path: tasks
```
- lint all files ending with .yml in all subfolders
```yaml
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](LICENSE).