From 2cdbb3061c0a64733cbdc2e3134addf1b45587b3 Mon Sep 17 00:00:00 2001
From: Antoine SCHILDKNECHT <antoine.schildknecht@ubicast.eu>
Date: Thu, 13 Apr 2023 14:08:02 +0000
Subject: [PATCH] Add/Update lint configurations | refs #37712

---
 .lint/ansible-lint-prod.conf | 21 +++++++++++++++++++++
 .lint/ansible-lint.conf      |  7 ++-----
 2 files changed, 23 insertions(+), 5 deletions(-)
 create mode 100644 .lint/ansible-lint-prod.conf

diff --git a/.lint/ansible-lint-prod.conf b/.lint/ansible-lint-prod.conf
new file mode 100644
index 00000000..43b5bbf5
--- /dev/null
+++ b/.lint/ansible-lint-prod.conf
@@ -0,0 +1,21 @@
+---
+
+profile: production  # min, basic, moderate, safety, shared, production
+
+exclude_paths:
+  - ../playbooks/bench-monitoring.yml
+  - .cache/
+  - ${HOME}/.cache/
+
+skip_list:
+  - meta-no-info              # Skip warnings for missing galaxy_info in roles
+  - role-name                 # Skip role name pattern verification ("-" should not be used)
+  - package-latest            # Skip warning when package installation state is set to latest
+  - experimental              # Skip all rules tagged as experimental, as schema validation
+  - name[play]                # Skip the rule dictating that all play should have a name
+  - name[casing]              # Skip the rule dictating that all task name should begin with uppercase
+  - template-instead-of-copy  # Skip forcing the use of templates
+  - name[template]            # Skip forcing to use jinja var at the end of a task name
+  - fqcn[action]              # Skip full FQCN for ansible actions
+
+...
diff --git a/.lint/ansible-lint.conf b/.lint/ansible-lint.conf
index 60e5b756..06038ccc 100644
--- a/.lint/ansible-lint.conf
+++ b/.lint/ansible-lint.conf
@@ -1,19 +1,16 @@
 ---
 
+profile: basic  # min, basic, moderate, safety, shared, production
+
 exclude_paths:
   - ../playbooks/bench-monitoring.yml
   - .cache/
   - ${HOME}/.cache/
 
 skip_list:
-  - meta-no-info              # Skip warnings for missing galaxy_info in roles
   - role-name                 # Skip role name pattern verification ("-" should not be used)
-  - package-latest            # Skip warning when package installation state is set to latest
-  - experimental              # Skip all rules tagged as experimental, as schema validation
   - name[play]                # Skip the rule dictating that all play should have a name
   - name[casing]              # Skip the rule dictating that all task name should begin with uppercase
-  - template-instead-of-copy  # Skip forcing the use of templates
   - name[template]            # Skip forcing to use jinja var at the end of a task name
-  - fqcn[action]              # Skip full FQCN for ansible actions
 
 ...
-- 
GitLab