added ansible linter config
authorChristian Pointner <equinox@realraum.at>
Sun, 23 Dec 2018 13:17:02 +0000 (14:17 +0100)
committerChristian Pointner <equinox@realraum.at>
Sun, 23 Dec 2018 13:17:02 +0000 (14:17 +0100)
.travis.yml
ansible/.ansible-lint [new file with mode: 0644]

index bfca333..b8ddfee 100644 (file)
@@ -14,6 +14,8 @@ addons:
 install:
   - pip install ansible
   - pip install ansible-lint
+  - ansible --version
+  - ansible-lint --version
 
 script:
   - cd ansible; ansible-lint _lint_roles.yml
diff --git a/ansible/.ansible-lint b/ansible/.ansible-lint
new file mode 100644 (file)
index 0000000..e8b9c8f
--- /dev/null
@@ -0,0 +1,15 @@
+skip_list:
+  # These default rules (https://docs.ansible.com/ansible-lint/rules/default_rules.html) are deactivated:
+  #
+  # This list must contain only strings, so put the rule numbers in quotes
+  #
+  # Lines can be big and beautiful and don't need no linter!
+  - "204"
+  # Currently buggy in 4.0.0: https://github.com/ansible/ansible-lint/issues/443
+  - "404"
+  # Not a concern for us (internet is either stable or down, retries won't change that):
+  - "405"
+  # Our roles are generally not intended to go on Ansible Galaxy
+  - "701"
+  - "703"
+  - "704"