From 59c433c27dcbc54f8c377a19e2a2f1b0e04eef1b Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Tue, 8 Nov 2016 12:27:28 +0200 Subject: [PATCH] - Renamed ansible-pre-commit to ansible-syntax-check in preperation for adding another hook, updated hooks.yml and README accordingly. --- README.rst | 12 +++++++----- ansible-pre-commit => ansible-syntax-check | 0 hooks.yaml | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) rename ansible-pre-commit => ansible-syntax-check (100%) diff --git a/README.rst b/README.rst index cd5b781..aa5757b 100644 --- a/README.rst +++ b/README.rst @@ -1,8 +1,10 @@ -Ansible pre-commit hook -####################### +Ansible pre-commit hooks +######################## -Ansible `pre-commit <http://pre-commit.com/>`_ hook. The hook runs -:code:`ansible --syntax-check` against playbooks declared. +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 diff --git a/ansible-pre-commit b/ansible-syntax-check similarity index 100% rename from ansible-pre-commit rename to ansible-syntax-check diff --git a/hooks.yaml b/hooks.yaml index de91568..3e7e89c 100644 --- a/hooks.yaml +++ b/hooks.yaml @@ -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 -- GitLab