ansible-hardening/tasks
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
..
contrib Add scaffolding for contrib tasks 2017-11-08 07:28:47 -06:00
rhel7stig Use replace module instead of lineinfile for disabling dynamic motd 2024-01-29 16:26:16 +00:00
main.yml Fix linters and metadata 2023-07-17 14:25:21 +02:00