ansible-hardening/tasks/rhel7stig
Dmitriy Rabotyagov db284ddf93 Use replace module instead of lineinfile for disabling dynamic motd
Lineinfile module can manage only single occurance of line in the file,
while pam.d/sshd contains multiple occurances of pam_motd which
results in not disabling it fully.

In order to properly comment out/uncomment all occurances replace module
should be used instead.

Change-Id: I73babb2431d4fda5aa90d9a1e230c1796449c0fc
2024-01-29 16:26:16 +00:00
..
accounts.yml Fix linters and metadata 2023-07-17 14:25:21 +02:00
aide.yml Fix linters and metadata 2023-07-17 14:25:21 +02:00
apt.yml Fix linters and metadata 2023-07-17 14:25:21 +02:00
async_tasks.yml Remove warn argument for command/shell 2023-06-30 15:05:50 +02:00
auditd.yml Fix linters and metadata 2023-07-17 14:25:21 +02:00
auth.yml Fix linters and metadata 2023-07-17 14:25:21 +02:00
dnf.yml Fix linters and metadata 2023-07-17 14:25:21 +02:00
file_perms.yml Remove warn argument for command/shell 2023-06-30 15:05:50 +02:00
graphical.yml Fix linters and metadata 2023-07-17 14:25:21 +02:00
kernel.yml Fix linters and metadata 2023-07-17 14:25:21 +02:00
lsm.yml Fix linters and metadata 2023-07-17 14:25:21 +02:00
main.yml Fix linters and metadata 2023-07-17 14:25:21 +02:00
misc.yml Fix linters and metadata 2023-07-17 14:25:21 +02:00
packages.yml Fix role to work with Jinja 2.7 2020-04-29 07:32:44 +00:00
rpm.yml Use pipefail for shell module 2022-01-04 13:07:09 +00:00
sshd.yml Use replace module instead of lineinfile for disabling dynamic motd 2024-01-29 16:26:16 +00:00
yum.yml Fix linters and metadata 2023-07-17 14:25:21 +02:00
zypper.yml Fix linters and metadata 2023-07-17 14:25:21 +02:00