ansible-lockdown / RHEL6-STIG

Ansible role for Red Hat 6 DISA STIG
MIT License
100 stars 55 forks source link

system-auth nullok rule fixes #122

Closed jamescassell closed 6 years ago

jamescassell commented 6 years ago

The first commit preserves whitespace before 'nullok', and squashes whitespace after it. Without this commit, the options string ends up with two spaces in a row when 'nullok' is removed.

The second commit adds "follow: yes" so that the replace module will follow the symlink and operate on the actual file, usually system-auth-ac, rather that replace the symlink with a modified copy of the file. Ansible 2.5 removes the "follow" option entirely and always modifies the linked file (as if follow=yes)

I'd prefer if you merged my pull request rather than squashed it.