summaryrefslogtreecommitdiff
path: root/roles/perf/tasks/main.yml
blob: 25c291afbd5096698fdbb8a5d8494f15192f4797 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- name: Install perf
  ansible.builtin.package:
    name:
      - perf
    state: present

- name: Configure perf event paranoid
  ansible.builtin.copy:
    src: files/99-perf-event-paranoid.conf
    dest: /etc/sysctl.d/99-perf-event-paranoid.conf
    owner: root
    group: root
    mode: u+rw,g+r,o+r
  notify:
    - Restart systemd-sysctl