Refactor samba-install.yml: clean up whitespace, update notify actions, and standardize tag formatting
This commit is contained in:
@@ -198,7 +198,6 @@
|
||||
- samba-server
|
||||
- samba-virusfilter
|
||||
|
||||
|
||||
- name: (samba-config-server.yml) Configure AppArmor local profile for clamd (data paths)
|
||||
template:
|
||||
src: etc/apparmor.d/local/usr.sbin.clamd.j2
|
||||
@@ -206,7 +205,9 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
notify: Reload AppArmor profile clamd
|
||||
notify:
|
||||
- Reload AppArmor profile clamd
|
||||
- Restart clamav-daemon
|
||||
when:
|
||||
- inventory_hostname in groups['samba_server']
|
||||
- samba_shares | selectattr('vfs_object_virusfilter', 'defined') |
|
||||
@@ -316,7 +317,7 @@
|
||||
register: clean_samba_trash_dirs
|
||||
when:
|
||||
- inventory_hostname in groups['samba_server']
|
||||
tags: [ samba-server, samba-cron ]
|
||||
tags: [samba-server, samba-cron]
|
||||
|
||||
- name: (samba-config-server.yml) Creates a cron job for cleaning up samba trash dirs
|
||||
ansible.builtin.cron:
|
||||
@@ -332,7 +333,7 @@
|
||||
- inventory_hostname in groups['samba_server']
|
||||
- clean_samba_trash_exists.stat.exists | bool
|
||||
- (clean_samba_trash_dirs.found | int) > 0
|
||||
tags: [ samba-server, samba-cron ]
|
||||
tags: [samba-server, samba-cron]
|
||||
|
||||
# ---
|
||||
# Cronjob for setting permissions on samba shares
|
||||
@@ -344,7 +345,7 @@
|
||||
register: set_permissions_on_samba_shares_exists
|
||||
when:
|
||||
- inventory_hostname in groups['samba_server']
|
||||
tags: [ samba-server, samba-cron ]
|
||||
tags: [samba-server, samba-cron]
|
||||
|
||||
- name: (samba-config-server.yml) Adjust configuration for script 'set_permissions_samba_shares.sh'
|
||||
ansible.builtin.template:
|
||||
@@ -353,7 +354,7 @@
|
||||
when:
|
||||
- inventory_hostname in groups['samba_server']
|
||||
- set_permissions_on_samba_shares_exists.stat.exists | bool
|
||||
tags: [ samba-server, samba-cron ]
|
||||
tags: [samba-server, samba-cron]
|
||||
|
||||
- name: (samba-config-server.yml) Creates a cron job for setting permissions to samba dirs
|
||||
ansible.builtin.cron:
|
||||
@@ -368,7 +369,7 @@
|
||||
when:
|
||||
- inventory_hostname in groups['samba_server']
|
||||
- (clean_samba_trash_dirs.found | int) > 0 # << int -> bool
|
||||
tags: [ samba-server, samba-cron ]
|
||||
tags: [samba-server, samba-cron]
|
||||
|
||||
# ---
|
||||
# Samba clients
|
||||
|
||||
Reference in New Issue
Block a user