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

@ -208,8 +208,8 @@
# tags supported inside config_files_mailsystem_scripts.yml:
#
- import_tasks: config_files_mailsystem_scripts.yml
tags:
#- import_tasks: config_files_mailsystem_scripts.yml
# tags:
- config-files-mailsystem
# tags supported inside samba-user.yml:
@ -245,6 +245,7 @@
when: inventory_hostname in groups['samba_server']
tags:
- samba-server
- remove-samba-user
- import_tasks: redis-server.yml
when: inventory_hostname in groups['nextcloud_server'] or

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"