Skip to content

Commit

Permalink
Added a file to support SLE Micro
Browse files Browse the repository at this point in the history
  • Loading branch information
rumch-se authored and teacup-on-rockingchair committed Sep 11, 2024
1 parent c435fa2 commit fccecaa
Showing 1 changed file with 17 additions and 0 deletions.
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 }}"

0 comments on commit fccecaa

Please sign in to comment.