forked from precurse/playbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_osquery.yml
More file actions
50 lines (45 loc) · 1.25 KB
/
install_osquery.yml
File metadata and controls
50 lines (45 loc) · 1.25 KB
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
- hosts: all
gather_facts: true
tasks:
- group_by: key=os_{{ ansible_distribution }}
- hosts: os_Ubuntu
gather_facts: False
tasks:
- apt_key:
keyserver=keyserver.ubuntu.com
id=1484120AC4E9F8A1A577AEEE97A80C63C9D8B80B
become: yes
- apt_repository:
repo="deb [arch=amd64] https://osquery-packages.s3.amazonaws.com/trusty trusty main" state=present
become: yes
- apt:
name=osquery
update_cache=yes cache_valid_time=3600
become: yes
- hosts: os_Debian
gather_facts: False
tasks:
- apt_key:
keyserver=keyserver.ubuntu.com
id=1484120AC4E9F8A1A577AEEE97A80C63C9D8B80B
become: yes
- apt_repository:
repo="deb [arch=amd64] https://osquery-packages.s3.amazonaws.com/trusty trusty main" state=present
become: yes
- apt:
name=osquery
update_cache=yes cache_valid_time=3600
become: yes
- hosts: os_CentOS
gather_facts: False
tasks:
- name: Install repo
yum:
name=https://osquery-packages.s3.amazonaws.com/centos7/noarch/osquery-s3-centos7-repo-1-0.0.noarch.rpm
state=present
become: yes
- name: Install package
yum:
name=osquery
state=present
become: yes