diff --git a/README.rst b/README.rst index aa5757bd69cab1f2eb288783f79b4fd7b982331c..3c6f2fb508dfce1422327b929881b9c2a5fa7007 100644 --- a/README.rst +++ b/README.rst @@ -5,6 +5,8 @@ Ansible `pre-commit <http://pre-commit.com/>`_ hooks. - ansible-syntax-check: The hook runs :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 ------------ @@ -20,11 +22,12 @@ Add the following to your :code:`.pre-commit-config.yaml`: .. code:: yaml - repo: https://www.shore.co.il/git/ansible-pre-commit/ - sha: v0.3.1 + sha: v0.4.0 hooks: - id: ansible-syntax-check # In case you want to specify other playbook files: files: playbook.yml + - id: ansible-vault-check 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