diff --git a/install_splunk.yml b/install_splunk.yml index 82bca1d..dc22e42 100644 --- a/install_splunk.yml +++ b/install_splunk.yml @@ -5,6 +5,11 @@ when: - splunk_get_fact is not defined + - name: "Boot-Start Splunk via cli" + command: "{{ splunk_exec }} enable boot-start" + become: yes + become_user: "{{ splunk_user }}" + - hosts: all_splunk_instances serial: - 1 @@ -39,9 +44,4 @@ path: /data_cold/splunk_data owner: splunk group: splunk - state: directory - - - name: "Boot-Start Splunk via cli" - command: "{{ splunk_exec }} enable boot-start" - become: yes - become_user: "{{ splunk_user }}" \ No newline at end of file + state: directory \ No newline at end of file