From 1cfc83c5d36ac8cba6712164913fb298844d03bc Mon Sep 17 00:00:00 2001 From: Tobias Richter Date: Fri, 6 Dec 2019 14:02:46 +0100 Subject: [PATCH] Exclude custom action plugins from linting --- action_plugins/conga_aemdst_facts.py | 4 ---- action_plugins/curl_cmdline_helper.py | 3 --- tasks/curl.yml | 2 ++ tasks/response-test.yml | 2 ++ tasks/ssl-enforce-test.yml | 2 ++ 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/action_plugins/conga_aemdst_facts.py b/action_plugins/conga_aemdst_facts.py index 9d9f597..6d428fe 100644 --- a/action_plugins/conga_aemdst_facts.py +++ b/action_plugins/conga_aemdst_facts.py @@ -5,10 +5,6 @@ __metaclass__ = type -import os -import re - -from ansible.module_utils._text import to_native from ansible.plugins.action import ActionBase from ansible.errors import AnsibleOptionsError diff --git a/action_plugins/curl_cmdline_helper.py b/action_plugins/curl_cmdline_helper.py index 90a58cf..c1fcfb7 100644 --- a/action_plugins/curl_cmdline_helper.py +++ b/action_plugins/curl_cmdline_helper.py @@ -5,10 +5,7 @@ __metaclass__ = type -import re - from ansible.plugins.action import ActionBase -from ansible.template import Templar from ansible.errors import AnsibleOptionsError try: diff --git a/tasks/curl.yml b/tasks/curl.yml index 7ab5d3c..a099822 100644 --- a/tasks/curl.yml +++ b/tasks/curl.yml @@ -10,6 +10,8 @@ - name: "Build curl command line." curl_cmdline_helper: + tags: + - skip_ansible_lint - debug: var: conga_aemdst_curl_cmdline diff --git a/tasks/response-test.yml b/tasks/response-test.yml index 5467bb5..c337c17 100644 --- a/tasks/response-test.yml +++ b/tasks/response-test.yml @@ -1,6 +1,8 @@ - name: "Evaluate conga_aemdst_facts." conga_aemdst_facts: conga_config: "{{ response_test_config }}" + tags: + - skip_ansible_lint - name: "Output conga_aemdst_config." debug: diff --git a/tasks/ssl-enforce-test.yml b/tasks/ssl-enforce-test.yml index 78034bd..5eec208 100644 --- a/tasks/ssl-enforce-test.yml +++ b/tasks/ssl-enforce-test.yml @@ -1,6 +1,8 @@ - name: "Evaluate conga_aemdst_facts." conga_aemdst_facts: conga_config: "{{ enforce_ssl_config }}" + tags: + - skip_ansible_lint - name: "Output conga_aemdst_config." debug: