update ..
This commit is contained in:
@ -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
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user