From b2ed18c4f74c2b9db8f80c3aabea1240a908aa00 Mon Sep 17 00:00:00 2001 From: JocelynPa Date: Mon, 13 Mar 2023 10:01:03 +0100 Subject: [PATCH] Start_Splunk --- Deploy_Conf-to-uf.yml | 7 ------- Start_Splunk.yml | 10 ++++++++++ 2 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 Start_Splunk.yml diff --git a/Deploy_Conf-to-uf.yml b/Deploy_Conf-to-uf.yml index 1f12841..62efddf 100644 --- a/Deploy_Conf-to-uf.yml +++ b/Deploy_Conf-to-uf.yml @@ -3,13 +3,6 @@ become_user: "{{ privileged_user }}" hosts: splunk_uf_Linux_TIC tasks: - - - name: Supprimer le répertoire non fonctionnel dans SplunkForwarder - file: - path: /opt/splunkforwarder/etc/apps/01-Conf_deploy_client - state: absent - force: yes - - name: Copier le répertoire dans SplunkForwarder copy: src: "{{ playbook_dir }}/Apps_for_Splunk/01-Conf_deploy_client" diff --git a/Start_Splunk.yml b/Start_Splunk.yml new file mode 100644 index 0000000..2f939cf --- /dev/null +++ b/Start_Splunk.yml @@ -0,0 +1,10 @@ +--- +- name: Copie de la configuration du deploiment server + become: yes + become_user: "{{ splunk_user }}" + hosts: all + tasks: + - 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