Loading README.rst +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 Loading @@ -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 Loading ansible-pre-commit→ansible-syntax-check +0 −0 File moved. View file hooks.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
README.rst +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 Loading @@ -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 Loading
hooks.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -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