Common handlers and tasks.

This commit is contained in:
2018-10-14 21:05:15 +13:00
parent 89105069b8
commit 5625269efd
2 changed files with 24 additions and 0 deletions

12
handlers/splunk.yml Normal file
View 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
View 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)