|
|
|
@ -48,4 +48,15 @@
|
|
|
|
src: "{{ playbook_dir }}/Apps_for_Splunk/01-Conf_deploy_client"
|
|
|
|
src: "{{ playbook_dir }}/Apps_for_Splunk/01-Conf_deploy_client"
|
|
|
|
dest: /opt/splunk/etc/apps/
|
|
|
|
dest: /opt/splunk/etc/apps/
|
|
|
|
owner: splunk
|
|
|
|
owner: splunk
|
|
|
|
group: splunk
|
|
|
|
group: splunk
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: "Start Splunk via cli"
|
|
|
|
|
|
|
|
command: "{{ splunk_exec }} start --accept-license --answer-yes --no-prompt"
|
|
|
|
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
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
|