From 9335cdcebccfa9ce2c31cc7c1abfb8dbeeb5453a Mon Sep 17 00:00:00 2001
From: MarkusTeufelberger <markusteufelberger@gmail.com>
Date: Mon, 29 Apr 2019 10:34:20 +0200
Subject: [PATCH] ansible-lint: Add exception for invocation of "rm" (#4609)

---
 .ansible-lint                                | 2 --
 contrib/dind/roles/dind-host/tasks/main.yaml | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/.ansible-lint b/.ansible-lint
index cdace7948..b8f7f54bd 100644
--- a/.ansible-lint
+++ b/.ansible-lint
@@ -4,11 +4,9 @@ skip_list:
   # see https://docs.ansible.com/ansible-lint/rules/default_rules.html for a list of all default rules
   # The following rules throw errors.
   # These either still need to be corrected in the repository and the rules re-enabled or they are skipped on purpose.
-  - '201'
   - '204'
   - '206'
   - '301'
-  - '302'
   - '305'
   - '306'
   - '404'
diff --git a/contrib/dind/roles/dind-host/tasks/main.yaml b/contrib/dind/roles/dind-host/tasks/main.yaml
index 4212b3ed5..d125414c1 100644
--- a/contrib/dind/roles/dind-host/tasks/main.yaml
+++ b/contrib/dind/roles/dind-host/tasks/main.yaml
@@ -79,6 +79,7 @@
   with_items: "{{ containers.results }}"
 
 - name: Early hack image install to adapt for DIND
+  # noqa 302 - this task uses the raw module intentionally
   raw: |
     rm -fv /usr/bin/udevadm /usr/sbin/udevadm
   delegate_to: "{{ item._ansible_item_label|default(item.item) }}"
-- 
GitLab