From d8f24e7d9d857be48aca09f3bec56451f1dbf768 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de>
Date: Fri, 26 Jul 2024 09:03:02 +0200
Subject: [PATCH] style: satisfy linter

---
 handlers/main.yml                | 4 ++--
 molecule/virtualbox/molecule.yml | 4 ++--
 tasks/configure_fail2ban.yml     | 2 +-
 tasks/install_clamav.yml         | 8 ++++----
 tasks/install_rkhunter.yml       | 2 +-
 5 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/handlers/main.yml b/handlers/main.yml
index 93eb289..e40514e 100644
--- a/handlers/main.yml
+++ b/handlers/main.yml
@@ -8,7 +8,7 @@
         state: directory
         owner: "root"
         group: "root"
-        mode: 0755
+        mode: "0o755"
       listen: "save iptables rules"
     - name: install netfilter-persistent to be able to save iptables rules
       ansible.builtin.apt:
@@ -32,7 +32,7 @@
         state: touch
         owner: "root"
         group: "root"
-        mode: 0600
+        mode: "0o600"
       listen: "save iptables rules"
     - name: save rules
       ansible.builtin.command: /usr/sbin/iptables-save        # noqa command-instead-of-module
diff --git a/molecule/virtualbox/molecule.yml b/molecule/virtualbox/molecule.yml
index ee9b3f7..e939c35 100644
--- a/molecule/virtualbox/molecule.yml
+++ b/molecule/virtualbox/molecule.yml
@@ -28,8 +28,8 @@ provisioner:
   config_options:
     defaults:
       # https://stackoverflow.com/questions/57435811/ansible-molecule-pass-multiple-vault-ids
-      #vault_identity_list: "@$HOME/.ansible/roles/lza_install_common.pass, @$HOME/.ansible/roles/passfile_1.pass"
-      #vault_identity_list: "${MOLECULE_PROJECT_DIRECTORY}/../../lza_server_hardening.pass"
+      # vault_identity_list: "@$HOME/.ansible/roles/lza_install_common.pass, @$HOME/.ansible/roles/passfile_1.pass"
+      # vault_identity_list: "${MOLECULE_PROJECT_DIRECTORY}/../../lza_server_hardening.pass"
       vault_identity_list: "../lza_server_hardening.pass, ../../../lza_server_hardening.pass"
   vvv: false
   playbooks:
diff --git a/tasks/configure_fail2ban.yml b/tasks/configure_fail2ban.yml
index 8836af2..58374cc 100644
--- a/tasks/configure_fail2ban.yml
+++ b/tasks/configure_fail2ban.yml
@@ -14,7 +14,7 @@
     create: true
     owner: "root"
     group: "root"
-    mode: 0644
+    mode: "0o644"
     state: present
     marker: "### {mark} ANSIBLE MANAGED BLOCK - SSHD RULES"
     block: |
diff --git a/tasks/install_clamav.yml b/tasks/install_clamav.yml
index 70e6f96..8f96d41 100644
--- a/tasks/install_clamav.yml
+++ b/tasks/install_clamav.yml
@@ -29,10 +29,10 @@
       'clamav',
       'clamav-scanner-systemd',
       'clamav-server-systemd',
-      #'clamav-data',           # pulled in by dependency
-      #'clamav-update',         # pulled in by dependency
-      #'clamav-filesystem',     # pulled in by dependency
-      #'clamav-lib',            # pulled in by dependency
+      'clamav-update',
+      # 'clamav-data',           # pulled in by dependency
+      # 'clamav-filesystem',     # pulled in by dependency
+      # 'clamav-lib',            # pulled in by dependency
       "clamd",
     ]
     state: present
diff --git a/tasks/install_rkhunter.yml b/tasks/install_rkhunter.yml
index 0145f39..df750b0 100644
--- a/tasks/install_rkhunter.yml
+++ b/tasks/install_rkhunter.yml
@@ -50,7 +50,7 @@
     state: "directory"
     owner: "root"
     group: "root"
-    mode: 0755
+    mode: "0o755"
 
 - name: configure /etc/rkhunter.d/rkhunter.local.conf
   ansible.builtin.blockinfile:
-- 
GitLab