From 4b3638f26e658c6f7fdc056aeb124045715300ae Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Fri, 8 Sep 2023 23:44:09 +0300
Subject: [PATCH] pre-commit: Update the ansible-lint hook.

---
 .pre-commit-config.yaml              |  5 +++--
 Ansible/roles/router/tasks/main.yaml | 12 ++++++------
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 486447b..c3a4f2d 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -72,11 +72,12 @@ repos:
       - id: shellcheck
 
   - repo: https://github.com/ansible/ansible-lint.git
-    rev: v6.0.2
+    rev: v6.19.0
     hooks:
       - id: ansible-lint
         args:
-          - "--project-dir Ansible"
+          - "--project-dir=Ansible"
+          - "--exclude=Ansible/collections"
 
   - repo: https://github.com/AleksaC/hadolint-py.git
     rev: v2.8.0
diff --git a/Ansible/roles/router/tasks/main.yaml b/Ansible/roles/router/tasks/main.yaml
index bbd10fd..660d1f7 100644
--- a/Ansible/roles/router/tasks/main.yaml
+++ b/Ansible/roles/router/tasks/main.yaml
@@ -24,12 +24,12 @@
 
 - name: Set services entries
   loop:
-    - line: 'wwwproxy		3129/tcp'  # noqa 203
-      regexp: '		3129/tcp'  # noqa 203
-    - line: 'ftpproxy		8021/tcp'  # noqa 203
-      regexp: '		8021/tcp'  # noqa 203
-    - line: 'bittorrent		51413/tcp'  # noqa 203
-      regexp: '		51413/tcp'  # noqa 203
+    - line: 'wwwproxy		3129/tcp'  # noqa no-tabs
+      regexp: '		3129/tcp'  # noqa no-tabs
+    - line: 'ftpproxy		8021/tcp'  # noqa no-tabs
+      regexp: '		8021/tcp'  # noqa no-tabs
+    - line: 'bittorrent		51413/tcp'  # noqa no-tabs
+      regexp: '		51413/tcp'  # noqa no-tabs
   ansible.builtin.lineinfile:
     backup: true
     line: '{{ item.line }}'
-- 
GitLab