add noqa for linter

Signed-off-by: Martin Schurz <[email protected]>
This commit is contained in:
Martin Schurz committed 2023-04-11 07:37:07 +02:00
1 parent ea922f6dca
commit bc9795c215
5 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -100,7 +100,7 @@
check_mode: false
when: ssh_server_hardening | bool
- name: Remove all small primes
- name: Remove all small primes # noqa no-changed-when
ansible.builtin.shell: >
awk '$5 >= {{ sshd_moduli_minimum }}' {{ sshd_moduli_file }} > {{ sshd_moduli_file }}.new ; [ -r {{ sshd_moduli_file }}.new
-a -s {{ sshd_moduli_file }}.new ] && mv {{ sshd_moduli_file }}.new {{ sshd_moduli_file }} || true
+1 -1
View File
@@ -57,7 +57,7 @@
# The following tasks only get executed when selinux is installed, UsePam is
# 'yes' and the ssh_password module is installed. See
# http://danwalsh.livejournal.com/12333.html for more info
- name: Remove selinux-policy when Pam is used, because Allowing sshd to read the shadow file directly is considered a potential security risk
- name: Remove selinux-policy when Pam is used, because Allowing sshd to read the shadow file directly is considered a potential security risk # noqa no-changed-when
ansible.builtin.command: semodule -r ssh_password
when:
- ssh_use_pam | bool