From 995c2692ac347df53d16b495df0dca2e10992c1b Mon Sep 17 00:00:00 2001 From: ekooiker Date: Fri, 8 Mar 2024 22:23:47 +0100 Subject: [PATCH] Fix undefined variable 'logrotate_file' --- roles/splunk/tasks/configure_facl.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/splunk/tasks/configure_facl.yml b/roles/splunk/tasks/configure_facl.yml index 29c0a75a..5df66358 100644 --- a/roles/splunk/tasks/configure_facl.yml +++ b/roles/splunk/tasks/configure_facl.yml @@ -22,7 +22,7 @@ - name: Add setfacl to logrotate script lineinfile: - path: "{{ logrotate_file }}" + path: "{{ logrotate_file | default('/etc/logrotate.d/syslog') }}" insertbefore: 'endscript' line: ' /usr/bin/setfacl -Rm u:{{ splunk_nix_user }}:rx /var/log' become: True