-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsplunk.yml
65 lines (52 loc) · 1.42 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
- name: Cowrie
hosts: splunk
tasks:
- package:
name:
- apt-transport-https
- ca-certificates
- curl
- gnupg-agent
- software-properties-common
update_cache: yes
become: yes
- apt_key:
url: https://download.docker.com/linux/debian/gpg
state: present
become: yes
- shell: lsb_release -cs
register: release
- apt_repository:
repo: "deb [arch=amd64] https://download.docker.com/linux/debian {{ release.stdout }} stable"
state: present
become: yes
- package:
name:
- docker-ce
- docker-ce-cli
- containerd.io
become: yes
- shell: uname -sm | tr ' ' -
register: uname
- get_url:
url: "https://github.com/docker/compose/releases/download/1.28.4/docker-compose-{{ uname.stdout }}"
dest: /usr/local/bin/docker-compose
mode: +x
become: yes
- service:
name: docker
state: started
become: yes
- copy:
src: droppings/docker-compose.yml
dest: ./docker-compose.yml
- file:
path: ./environment.env
state: touch
- blockinfile:
path: ./environment.env
block: |
SPLUNK_PASSWORD = {{ lookup('password', '/dev/null length=8 chars=ascii_letters') }}
become: yes
- shell: docker-compose up -d
become: yes