-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue #116: ansible linting workflow
- Loading branch information
1 parent
e3fdb01
commit 82a86b5
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Reusable Workflow for Ansible Linting | ||
|
||
- **Purpose:** Enhances the quality of Ansible projects by providing a reusable linting workflow. | ||
- **Usage:** Integrate this workflow into your Ansible projects to streamline linting processes. | ||
- **Note:** Pass an ansible-lint-file configuration file to the `ansible-lint-file` variable |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Ansible Workflow | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
ansible-lint-file: | ||
required: true | ||
type: string | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Installation d'Ansible | ||
run: sudo apt install ansible | ||
|
||
- name: Linting Ansible Playbooks | ||
run: ansible-lint -c ${{ github.event.inputs.ansible-lint-file }}" |