-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsplunk.yml
41 lines (35 loc) · 936 Bytes
/
splunk.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
- hosts: splunkforwarders
name: synchronize splunk
serial: 1
become_method: sudo
become_user: root
become_flags: '-i'
tasks:
- name: deploy splunk apps
copy:
src: /opt/splunk/etc/deployment-apps
dest: /var/tmp/splunktest
owner: root
group: root
delegate_to: voltron
become: true
notify:
- restart splunk
# - name: deploy splunk apps
# synchronize:
# mode: push
# src: /opt/splunk/etc/deployment-apps/
# # dest: /opt/splunk/etc/apps/
# dest: /var/tmp/splunktest/
# perms: yes
# owner: yes
# group: yes
# ssh_args: "-l root"
# delegate_to: localhost
# notify:
# - restart splunk
handlers:
- name: restart splunk
service: name=splunk state=restarted
become: true