File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 7777 state : restarted
7878 become : true
7979
80- - name : restart auditd service
80+ - name : restart redhat auditd service
8181 command : service auditd condrestart
8282 become : true
83+ when : ansible_os_family == 'RedHat'
84+
85+ - name : restart non-redhat auditd service
86+ service :
87+ name : auditd
88+ state : restarted
89+ become : true
90+ when : ansible_os_family != 'RedHat'
Original file line number Diff line number Diff line change 3636 option : log_group
3737 value : " {{ splunk_nix_group }}"
3838 become : true
39- notify : restart auditd service
40- ignore_errors : true
39+ notify :
40+ - restart redhat auditd service
41+ - restart non-redhat auditd service
4142 when : result_auditd_conf.stat.exists
4243
4344 when : splunk_nix_user != 'root'
You can’t perform that action at this time.
0 commit comments