diff --git a/install_splunk.yml b/install_splunk.yml index 052e130..6298d3d 100644 --- a/install_splunk.yml +++ b/install_splunk.yml @@ -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 @@ -49,4 +39,14 @@ path: /data_cold/splunk_data owner: splunk group: splunk - state: directory \ No newline at end of file + 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 }}"