28 lines
657 B
YAML
28 lines
657 B
YAML
---
|
|
|
|
- name: get source repository for profiling tools
|
|
git:
|
|
repo: https://github.com/facebook/osquery.git
|
|
dest: /root/osquery
|
|
|
|
- name: ensure profiling dependencies are present - pkg
|
|
package:
|
|
name: "{{ item }}"
|
|
state: present
|
|
with_items:
|
|
- python-pip
|
|
- name: ensure profiling dependencies are present - pip
|
|
pip:
|
|
name: "{{ item }}"
|
|
state: present
|
|
with_items:
|
|
- psutil
|
|
- name: profiling
|
|
command: "./tools/analysis/profile.py --config {{ osquery_profiling_conf }} --shell /usr/bin/osqueryi --count 1 --rounds 4"
|
|
args:
|
|
chdir: /root/osquery
|
|
changed_when: false
|
|
register: perf
|
|
- debug: var=perf.stdout_lines
|
|
|