|
|
|
@ -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:
|
|
|
|
@ -53,10 +58,4 @@
|
|
|
|
- name: "Start Splunk via cli"
|
|
|
|
- name: "Start Splunk via cli"
|
|
|
|
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
|
|
|
|
|