diff --git a/Apps_for_Splunk/01-Conf_deploy_client/deployclient.conf b/Apps_for_Splunk/01-Conf_deploy_client/local/deployclient.conf similarity index 100% rename from Apps_for_Splunk/01-Conf_deploy_client/deployclient.conf rename to Apps_for_Splunk/01-Conf_deploy_client/local/deployclient.conf diff --git a/Deploy_Conf.yml b/Deploy_Conf.yml index 5d2afee..6ae3648 100644 --- a/Deploy_Conf.yml +++ b/Deploy_Conf.yml @@ -1,9 +1,17 @@ - name: Copie de la configuration du deploiment server become: yes - become_user: splunk - hosts: all + become_user: "{{ privileged_user }}" + hosts: all:!splunk_deployement_TIC:!splunk_monitoring_TIC tasks: + - name: Suppression du repertoire non fonctionnel + file: + path: /opt/splunk*/etc/apps/ + state: absent + force: yes + - name: Copier le répertoire copy: src: "{{ playbook_dir }}/Apps_for_Splunk/01-Conf_deploy_client" - dest: /opt/splunkforwarder/etc/apps/ \ No newline at end of file + dest: /opt/splunk*/etc/apps/ + owner: splunk + group: splunk \ No newline at end of file