From fccecaabb9382d55af322ec153e52821bb97c688 Mon Sep 17 00:00:00 2001 From: rchikov Date: Fri, 23 Aug 2024 10:26:20 +0200 Subject: [PATCH] Added a file to support SLE Micro --- .../no_empty_passwords/ansible/slmicro5.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 linux_os/guide/system/accounts/accounts-restrictions/password_storage/no_empty_passwords/ansible/slmicro5.yml 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 }}"