Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit ba3bf9e

Browse files
authored
Lint driver playbooks (#76)
1 parent 99f9376 commit ba3bf9e

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

Diff for: .pre-commit-config.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,14 @@ repos:
6363
# E040: Syntax error determined using `bash -n` (as many scripts
6464
# use jinja templating, this will often fail and the syntax
6565
# error will be discovered in execution anyway)
66+
- repo: https://github.com/ansible/ansible-lint.git
67+
rev: v4.3.5
68+
hooks:
69+
- id: ansible-lint
70+
always_run: true
71+
pass_filenames: false
72+
# do not add file filters here as ansible-lint does not give reliable
73+
# results when called with individual files.
74+
# https://github.com/ansible/ansible-lint/issues/611
75+
verbose: true
76+
entry: bash -c "ANSIBLE_LIBRARY=molecule_vagrant/modules ansible-lint --force-color -v"

Diff for: molecule_vagrant/playbooks/create.yml

+1
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@
6060
copy:
6161
content: "{{ instance_conf | to_json | from_json | to_yaml }}"
6262
dest: "{{ molecule_instance_config }}"
63+
mode: 0600

Diff for: molecule_vagrant/playbooks/destroy.yml

+1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@
3636
# Molecule managed
3737
{{ instance_conf | to_json | from_json | to_yaml }}
3838
dest: "{{ molecule_instance_config }}"
39+
mode: 0600
3940
when: server.changed | bool

0 commit comments

Comments
 (0)