diff --git a/Deploy_Conf-to-uf_TIA.yml b/Deploy_Conf-to-uf_TIA.yml new file mode 100644 index 0000000..e91fc8b --- /dev/null +++ b/Deploy_Conf-to-uf_TIA.yml @@ -0,0 +1,16 @@ +- name: Copie de la configuration du deploiment server + become: yes + become_user: "{{ privileged_user }}" + hosts: splunk_uf_Linux_TIA + tasks: + - name: Copier le répertoire dans SplunkForwarder + copy: + src: "{{ playbook_dir }}/Apps_for_Splunk/01-Conf_deploy_client" + dest: /opt/splunkforwarder/etc/apps/ + owner: splunk + group: splunk + + - name: "Start Splunk via cli" + command: "{{ splunk_exec_uf }} start --accept-license --answer-yes --no-prompt" + become: yes + become_user: "{{ splunk_user }}" \ No newline at end of file diff --git a/Deploy_Conf.yml b/Deploy_Conf.yml index d2e2e57..bd12a47 100644 --- a/Deploy_Conf.yml +++ b/Deploy_Conf.yml @@ -9,9 +9,4 @@ src: "{{ playbook_dir }}/Apps_for_Splunk/01-Conf_deploy_client" dest: /opt/splunk/etc/apps/ owner: splunk - group: splunk - - - name: "Restart Splunk via cli" - command: "{{ splunk_exec }} restart" - become: yes - become_user: "{{ splunk_user }}" \ No newline at end of file + group: splunk \ No newline at end of file diff --git a/Deploy_Conf_TIA.yml b/Deploy_Conf_TIA.yml new file mode 100644 index 0000000..b18bdd7 --- /dev/null +++ b/Deploy_Conf_TIA.yml @@ -0,0 +1,12 @@ +--- +- name: Copie de la configuration du deploiment server + become: yes + become_user: "{{ privileged_user }}" + hosts: splunk_indexer_TIA,splunk_cluster_master_TIA:!splunk_uf_Linux_TIA + tasks: + - name: Copier le configuration DS dans Splunk + copy: + 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