Skip to content

Commit 718fcbd

Browse files
authored
Explicit Group Init in Boot Config (#137)
* Include group in boot start
1 parent 044466b commit 718fcbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/splunk/tasks/configure_splunk_boot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
- reload systemctl daemon
4141

4242
- name: Enable splunk boot-start via initd
43-
command: "{{ splunk_home }}/bin/splunk enable boot-start -user {{ splunk_nix_user }} -systemd-managed 0 --answer-yes --auto-ports --no-prompt --accept-license"
43+
command: "{{ splunk_home }}/bin/splunk enable boot-start -user {{ splunk_nix_user }} -group {{ splunk_nix_group }} -systemd-managed 0 --answer-yes --auto-ports --no-prompt --accept-license"
4444
become: true
4545
when:
4646
- desired_start_method == "initd"
@@ -51,7 +51,7 @@
5151
- start splunk
5252

5353
- name: Enable splunk boot-start via systemd
54-
command: "{{ splunk_home }}/bin/splunk enable boot-start -user {{ splunk_nix_user }} -systemd-managed 1 -systemd-unit-file-name {{ systemd_unit }} -create-polkit-rules {{ splunk_create_polkit }} --answer-yes --auto-ports --no-prompt --accept-license"
54+
command: "{{ splunk_home }}/bin/splunk enable boot-start -user {{ splunk_nix_user }} -group {{ splunk_nix_group }} -systemd-managed 1 -systemd-unit-file-name {{ systemd_unit }} -create-polkit-rules {{ splunk_create_polkit }} --answer-yes --auto-ports --no-prompt --accept-license"
5555
become: true
5656
when:
5757
- desired_start_method == "systemd"

0 commit comments

Comments
 (0)