update ..

This commit is contained in:
ckubu
2024-06-09 01:30:38 +02:00
parent eedc62c8a3
commit e29906f845
16 changed files with 636 additions and 147 deletions

View File

@ -5,8 +5,9 @@
# ---
- name: (samba-remove-user.yml) Check if samba user exists for removable system user
shell: pdbedit -w -L | awk -F":" '{ print $1 }' | grep '{{ item.name }}'
- name: "(samba-remove-user.yml) Check if samba user exists for removable system user"
shell: pdbedit -w -L | awk -F":" '{ print $1 }' | grep -q '{{ item.name }}'
register: samba_remove_system_users_present
changed_when: "samba_remove_system_users_present.rc == 0"
failed_when: "samba_remove_system_users_present.rc > 1"