diff --git a/hooks.yaml b/hooks.yaml index 3097abb4b7add4b2b603ff1656d07bd8fee28a62..593d42e2a9b93ac7af3a17d21b87e326f1c31c39 100644 --- a/hooks.yaml +++ b/hooks.yaml @@ -2,9 +2,10 @@ - id: ansible-syntax-check name: Syntax check Ansible playbooks description: Check Ansible playbooks for syntax errors. - language: script - entry: ansible-syntax-check + language: python + entry: ansible-playbook files: playbook.yml + args: ['--inventory=localhost,', '--syntax-check'] - id: ansible-vault-check name: Verify vaulted files description: Verify that Ansible Vault files are vaulted. diff --git a/setup.py b/setup.py new file mode 100644 index 0000000000000000000000000000000000000000..0e5dcfa48d5408ac19492d0d2a2eb888496e2f84 --- /dev/null +++ b/setup.py @@ -0,0 +1,8 @@ +from setuptools import setup + + +setup( + name='pre_commit_ansible_dummy_package', + version='0.1.0', + install_requires=['ansible==2.2.1.0'], +)