Skip to content
Snippets Groups Projects
Commit 59c433c2 authored by nimrod's avatar nimrod
Browse files

- Renamed ansible-pre-commit to ansible-syntax-check in preperation for adding...

- Renamed ansible-pre-commit to ansible-syntax-check in preperation for adding another hook, updated hooks.yml and README accordingly.
parent d72d7d8c
Branches
Tags
No related merge requests found
Ansible pre-commit hook
#######################
Ansible pre-commit hooks
########################
Ansible `pre-commit <http://pre-commit.com/>`_ hook. The hook runs
:code:`ansible --syntax-check` against playbooks declared.
Ansible `pre-commit <http://pre-commit.com/>`_ hooks.
- ansible-syntax-check: The hook runs
:code:`ansible --syntax-check` against playbooks declared.
Dependencies
------------
......@@ -20,7 +22,7 @@ Add the following to your :code:`.pre-commit-config.yaml`:
- repo: https://www.shore.co.il/git/ansible-pre-commit/
sha: v0.3.1
hooks:
- id: ansible-pre-commit
- id: ansible-syntax-check
# In case you want to specify other playbook files:
files: playbook.yml
......
File moved
......@@ -3,5 +3,5 @@
name: Check Ansible playbooks
description: Check Ansible playbooks for syntax errors.
language: script
entry: ansible-pre-commit
entry: ansible-syntax-check
files: playbook.yml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment