-
Notifications
You must be signed in to change notification settings - Fork 0
/
site_splunkf.yml
47 lines (44 loc) · 1.25 KB
/
site_splunkf.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
41
42
43
44
45
46
47
---
# file: site_splunkf.yml
#
# Ansible plays for installing and updating Splunk Universal Forwarder
# service nodes.
#
# Sample usage:
#
# (To install the Splunk Forwarder:)
# $ ansible-playbook site_splunkf.yml --ask-vault-pass \
# --inventory _testing \
# --limit splunkf \
# --tags install
#
# (To update the Splunk Forwarder:)
# $ ansible-playbook site_splunkf.yml --ask-vault-pass \
# --inventory _testing \
# --limit splunkf \
# --tags update
#
# In the above commands, you could also specify "_staging" or
# "_production" for the inventory file to affect those service
# environments instead of "_testing".
#
- name: "Installing Splunk Universal Forwarder:"
hosts: splunkf
remote_user: ansible-admin
become: yes
become_user: root
gather_facts: true
roles:
- splunkf-installed
tags:
- install
- name: "Updating Splunk Universal Forwarder:"
hosts: splunkf
remote_user: ansible-admin
become: yes
become_user: root
gather_facts: true
roles:
- splunkf-updated
tags:
- update