From: Christian Pointner Date: Sun, 23 Dec 2018 13:17:02 +0000 (+0100) Subject: added ansible linter config X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=1165b7311da8b7827329df4ff3d2e92c85151cd2;p=noc.git added ansible linter config --- 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"