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 committed Aug 23, 2024
1 parent c05da7e commit 59f5b80
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 59f5b80

Please sign in to comment.