|
|
|
@ -36,12 +36,6 @@
|
|
|
|
become: yes
|
|
|
|
become: yes
|
|
|
|
become_user: "{{ privileged_user }}"
|
|
|
|
become_user: "{{ privileged_user }}"
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
- name: Vérifier si le répertoire existe dans Splunk
|
|
|
|
|
|
|
|
hosts: all:!splunk_uf_Linux_TIC
|
|
|
|
|
|
|
|
stat:
|
|
|
|
|
|
|
|
path: /opt/splunk/etc/apps/01-Conf_deploy_client
|
|
|
|
|
|
|
|
register: splunk_dir
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Supprimer le répertoire non fonctionnel dans Splunk
|
|
|
|
- name: Supprimer le répertoire non fonctionnel dans Splunk
|
|
|
|
hosts: all:!splunk_uf_Linux_TIC
|
|
|
|
hosts: all:!splunk_uf_Linux_TIC
|
|
|
|
when: splunk_dir.stat.exists
|
|
|
|
when: splunk_dir.stat.exists
|
|
|
|
|