diff --git a/ansible/filter_plugins/tenks.py b/ansible/filter_plugins/tenks.py index eea0f53..e284f22 100644 --- a/ansible/filter_plugins/tenks.py +++ b/ansible/filter_plugins/tenks.py @@ -13,7 +13,6 @@ # under the License. import math import re -import six from ansible.errors import AnsibleFilterError from ansible.module_utils._text import to_text diff --git a/ansible/roles/virtualbmc-domain/tasks/main.yml b/ansible/roles/virtualbmc-domain/tasks/main.yml index d2c93bd..f60d8b1 100644 --- a/ansible/roles/virtualbmc-domain/tasks/main.yml +++ b/ansible/roles/virtualbmc-domain/tasks/main.yml @@ -35,6 +35,9 @@ state: stopped timeout: 15 +# These tasks will trigger ansible lint rule ANSIBLE0012 because they are not +# idempotent (we always delete and recreate the domain). Use a tag to suppress +# the checks. - name: Ensure domain is added to VBMC command: >- {{ cmd }} add '{{ domain }}' @@ -43,6 +46,8 @@ --password '{{ vbmc_ipmi_password }}' --address {{ vbmc_ipmi_address }} become: true + tags: + - skip_ansible_lint - name: Ensure domain is started in VBMC command: > @@ -52,3 +57,5 @@ # few commands. until: res is succeeded become: true + tags: + - skip_ansible_lint