|
|
|
|
@ -5,16 +5,6 @@
|
|
|
|
|
when:
|
|
|
|
|
- splunk_get_fact is not defined
|
|
|
|
|
|
|
|
|
|
- name: "Start Splunk via cli"
|
|
|
|
|
command: "{{ splunk_exec }} start --accept-license --answer-yes --no-prompt"
|
|
|
|
|
become: yes
|
|
|
|
|
become_user: "{{ privileged_user }}"
|
|
|
|
|
|
|
|
|
|
- name: "Boot-Start Splunk via cli"
|
|
|
|
|
command: "{{ splunk_exec }} enable boot-start"
|
|
|
|
|
become: yes
|
|
|
|
|
become_user: "{{ privileged_user }}"
|
|
|
|
|
|
|
|
|
|
- hosts: all_splunk_instances
|
|
|
|
|
serial:
|
|
|
|
|
- 1
|
|
|
|
|
@ -50,3 +40,13 @@
|
|
|
|
|
owner: splunk
|
|
|
|
|
group: splunk
|
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
|
|
- name: "Start Splunk via cli"
|
|
|
|
|
command: "{{ splunk_exec }} start --accept-license --answer-yes --no-prompt"
|
|
|
|
|
become: yes
|
|
|
|
|
become_user: "{{ privileged_user }}"
|
|
|
|
|
|
|
|
|
|
- name: "Boot-Start Splunk via cli"
|
|
|
|
|
command: "{{ splunk_exec }} enable boot-start"
|
|
|
|
|
become: yes
|
|
|
|
|
become_user: "{{ privileged_user }}"
|
|
|
|
|
|