diff --git a/linux_os/guide/system/accounts/accounts-restrictions/password_storage/no_empty_passwords/ansible/slmicro5.yml b/linux_os/guide/system/accounts/accounts-restrictions/password_storage/no_empty_passwords/ansible/slmicro5.yml new file mode 100644 index 000000000000..28416e10f6b2 --- /dev/null +++ b/linux_os/guide/system/accounts/accounts-restrictions/password_storage/no_empty_passwords/ansible/slmicro5.yml @@ -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 }}"