From 1165b7311da8b7827329df4ff3d2e92c85151cd2 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 23 Dec 2018 14:17:02 +0100 Subject: [PATCH] added ansible linter config --- .travis.yml | 2 ++ ansible/.ansible-lint | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 ansible/.ansible-lint diff --git a/.travis.yml b/.travis.yml index bfca333..b8ddfee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 index 0000000..e8b9c8f --- /dev/null +++ b/ansible/.ansible-lint @@ -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" -- 1.7.10.4