adopt all current suggestions from ansible-lint (#592)

This commit is contained in:
schurzi authored and GitHub committed 2022-10-24 09:42:23 +02:00
1 parent 53be805099
commit a1b80fe657
14 files changed
+86 -62

No files matched your search

+2 -1
View File
@@ -1,5 +1,6 @@
---
- include_tasks: hardening.yml
- name: Include hardening tasks
include_tasks: hardening.yml
args:
apply:
become: true
+1 -1
View File
@@ -24,7 +24,7 @@
# The following tasks only get executed when selinux is in state enforcing,
# UsePam is 'no' and the ssh_password module is not installed. See this issue for
# more info: https://github.com/hardening-io/ansible-ssh-hardening/issues/23
- name: run selinux tasks
- name: Run selinux tasks
when:
- not (ssh_use_pam | bool)
- ('ssh_password' not in ssh_password_module.stdout)