-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathami.yml
31 lines (26 loc) · 779 Bytes
/
ami.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
---
- hosts: all
tasks:
- name: add GPG key
shell:
curl -L https://pkg.osquery.io/rpm/GPG | sudo tee /etc/pki/rpm-gpg/RPM-GPG-KEY-osquery
- name: add YUM repo
become: yes
shell:
yum-config-manager --add-repo https://pkg.osquery.io/rpm/osquery-s3-rpm.repo
- name: enable YUM repo
become: yes
shell:
yum-config-manager --enable osquery-s3-rpm
- name: install osquery
become: yes
yum:
name: osquery
state: latest
- name: copy osqueryd.conf to correct folder
copy:
src: ./osquery.conf
dest: /etc/osquery/osquery.conf
- name: restart osqueryd
shell:
sudo osqueryctl restart