From e66c4593f1d53812d99ec6a84200fe97908d44bf Mon Sep 17 00:00:00 2001 From: JocelynPa Date: Fri, 24 Mar 2023 15:47:54 +0100 Subject: [PATCH] update --- Deploy_Conf-to-uf_TIA.yml | 5 +++++ Deploy_Conf_TIA.yml | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Deploy_Conf-to-uf_TIA.yml b/Deploy_Conf-to-uf_TIA.yml index e91fc8b..86bf77e 100644 --- a/Deploy_Conf-to-uf_TIA.yml +++ b/Deploy_Conf-to-uf_TIA.yml @@ -10,6 +10,11 @@ owner: splunk group: splunk + - name: "Start Splunk via cli" + command: "{{ splunk_exec_uf }} enable boot-start" + become: yes + become_user: "{{ splunk_user }}" + - name: "Start Splunk via cli" command: "{{ splunk_exec_uf }} start --accept-license --answer-yes --no-prompt" become: yes diff --git a/Deploy_Conf_TIA.yml b/Deploy_Conf_TIA.yml index b18bdd7..2980bf2 100644 --- a/Deploy_Conf_TIA.yml +++ b/Deploy_Conf_TIA.yml @@ -9,4 +9,14 @@ src: "{{ playbook_dir }}/Apps_for_Splunk/01-Conf_deploy_client" dest: /opt/splunk/etc/apps/ owner: splunk - group: splunk \ No newline at end of file + group: splunk + + - name: "Start Splunk via cli" + command: "{{ splunk_exec }} enable boot-start" + become: yes + become_user: "{{ splunk_user }}" + + - name: "Start Splunk via cli" + command: "{{ splunk_exec }} start --accept-license --answer-yes --no-prompt" + become: yes + become_user: "{{ splunk_user }}" \ No newline at end of file