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
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
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.

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

+0 −0

File moved.

+1 −1
Original line number Diff line number Diff line
@@ -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