-
Notifications
You must be signed in to change notification settings - Fork 698
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c435fa2
commit fccecaa
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
...m/accounts/accounts-restrictions/password_storage/no_empty_passwords/ansible/slmicro5.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# platform = multi_platform_slmicro | ||
# reboot = false | ||
# strategy = configure | ||
# complexity = low | ||
# disruption = medium | ||
- name: Find files in /etc/pam.d/ with password auth | ||
find: | ||
paths: /etc/pam.d | ||
contains: ".*pam_unix\\.so.*nullok.*" | ||
recurse: yes | ||
register: find_pam_conf_files_result | ||
|
||
- name: Prevent Log In to Accounts with Empty Password | ||
replace: | ||
dest: "{{ item.path }}" | ||
regexp: nullok | ||
with_items: "{{ find_pam_conf_files_result.files }}" |