You've already forked splunk-upgrade
Common handlers and tasks.
This commit is contained in:
12
handlers/splunk.yml
Normal file
12
handlers/splunk.yml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
- name: Stop Splunk
|
||||||
|
command: /opt/splunk/bin/splunk stop
|
||||||
|
become_user: splunk
|
||||||
|
|
||||||
|
- name: Start Splunk
|
||||||
|
command: /opt/splunk/bin/splunk start
|
||||||
|
become_user: splunk
|
||||||
|
|
||||||
|
- name: Start Splunk (No Warning)
|
||||||
|
command: /opt/splunk/bin/splunk start --accept-license --answer-yes --no-prompt
|
||||||
|
become_user: splunk
|
||||||
12
tasks/common.yml
Normal file
12
tasks/common.yml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
- name: Stop Splunk
|
||||||
|
command: /opt/splunk/bin/splunk stop
|
||||||
|
become_user: splunk
|
||||||
|
|
||||||
|
- name: Upgrade Splunk
|
||||||
|
unarchive:
|
||||||
|
src: "{{ splunk_archive }}"
|
||||||
|
dest: /opt/splunk
|
||||||
|
owner: splunk
|
||||||
|
group: splunk
|
||||||
|
notify: Start Splunk (No Warning)
|
||||||
Reference in New Issue
Block a user