aboutsummaryrefslogtreecommitdiffstats
path: root/roles/tuned/tasks/main.yml
blob: 36d2f1621801523df698cdb410dadd3772fb8274 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- name: install tuned
  dnf:
    name: tuned
    state: present

- name: start tuned
  systemd:
    name: tuned
    enabled: yes
    state: started

- name: get current tuned profile
  slurp:
    src: /etc/tuned/active_profile
  register: tuned_active_profile

- name: set tuned profile
  command: 'tuned-adm profile {{ tuned_profile }}'
  when: tuned_active_profile.content | b64decode | trim != tuned_profile