master
JocelynPa 3 years ago
parent 6262a2e977
commit 82ecce3da4

@ -42,6 +42,11 @@
path: /opt/splunk/etc/apps/01-Conf_deploy_client path: /opt/splunk/etc/apps/01-Conf_deploy_client
state: absent state: absent
force: yes force: yes
- name: Supprimer le répertoire non fonctionnel dans Splunk
file:
path: /opt/splunkforwarder/etc/apps/01-Conf_deploy_client
state: absent
force: yes
- name: Copier le répertoire dans Splunk - name: Copier le répertoire dans Splunk
copy: copy:
@ -54,9 +59,3 @@
command: "{{ splunk_exec }} start --accept-license --answer-yes --no-prompt" command: "{{ splunk_exec }} start --accept-license --answer-yes --no-prompt"
become: yes become: yes
become_user: "{{ splunk_user }}" become_user: "{{ splunk_user }}"
register: start_splunk
changed_when: start_splunk.rc == 0 and 'already running' not in start_splunk.stdout
when:
- not splunk_enable_service or pid1 is not defined
- splunk_status.rc != 0
ignore_errors: yes
Loading…
Cancel
Save