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