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

- Updated README.

parent a1a1c921
Branches
Tags
No related merge requests found
...@@ -5,6 +5,8 @@ Ansible `pre-commit <http://pre-commit.com/>`_ hooks. ...@@ -5,6 +5,8 @@ Ansible `pre-commit <http://pre-commit.com/>`_ hooks.
- ansible-syntax-check: The hook runs - ansible-syntax-check: The hook runs
:code:`ansible --syntax-check` against playbooks declared. :code:`ansible --syntax-check` against playbooks declared.
- ansible-vault-check: The hook verifies that files that have :code:`vault` in
the filename are indeed vaulted.
Dependencies Dependencies
------------ ------------
...@@ -20,11 +22,12 @@ Add the following to your :code:`.pre-commit-config.yaml`: ...@@ -20,11 +22,12 @@ Add the following to your :code:`.pre-commit-config.yaml`:
.. code:: yaml .. code:: 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.4.0
hooks: hooks:
- id: ansible-syntax-check - 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
- id: ansible-vault-check
And run :code:`pre-commit autoupdate` to update the hooks. In case your And run :code:`pre-commit autoupdate` to update the hooks. In case your
:code:`roles` directory isn't in the same directory as the playbook you're :code:`roles` directory isn't in the same directory as the playbook you're
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment