diff --git a/README.rst b/README.rst index 3e59edc89ccde44b487d8d5bf162ba05a82f00e5..8cc780b054982fd39559224cf480ea4311b18e40 100644 --- a/README.rst +++ b/README.rst @@ -2,7 +2,7 @@ Ansible pre-commit hook ####################### Ansible `pre-commit <http://pre-commit.com/>`_ hook. The hook runs -:code:`ansible --syntax-check` against playbooks found. +:code:`ansible --syntax-check` against playbooks declared. Usage ----- @@ -12,7 +12,21 @@ Add the following to your :code:`.pre-commit-config.yaml`: .. :code: yaml - repo: https://www.shore.co.il/git/ansible-pre-commit/ - sha: v0.1.0 + sha: v0.2.0 hooks: - id: ansible-pre-commit files: playbook.yml + +License +------- + +This software is licensed under the AGPL v3+ license (see the :code:`LICENSE.txt` +file). + +Author Information +------------------ + +Nimrod Adar, `contact me <nimrod@shore.co.il>`_ or visit my `website +<https://www.shore.co.il/>`_. Patches are welcome via `git send-email +<http://git-scm.com/book/en/v2/Git-Commands-Email>`_. The repository is located +at: https://www.shore.co.il/git/. diff --git a/VERSION b/VERSION index d917d3e26adc9854b4569871e20111c38de2606f..0ea3a944b399d25f7e1b8fe684d754eb8da9fe7f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.2 +0.2.0 diff --git a/ansible-pre-commit b/ansible-pre-commit index e583ee33174f3b35d080f19c7248c6534e98ed34..7146d9c2b28e58a270f69da69f40148c58d4036a 100755 --- a/ansible-pre-commit +++ b/ansible-pre-commit @@ -1,5 +1,5 @@ #!/bin/sh -e -echo "$@" + for playbook in $@ do ANSIBLE_ROLES_PATH=../ ansible-playbook \