diff options
author | Stonewall Jackson <stonewall@sacredheartsc.com> | 2023-02-04 01:23:43 -0500 |
---|---|---|
committer | Stonewall Jackson <stonewall@sacredheartsc.com> | 2023-02-04 01:52:13 -0500 |
commit | 0261e875679f1bf63c8d689da7fc7e014597885d (patch) | |
tree | 3f19cd74a0c1070944f75437f30b098d6ef2ffcb /roles/tuned/tasks | |
download | selfhosted-0261e875679f1bf63c8d689da7fc7e014597885d.tar.gz selfhosted-0261e875679f1bf63c8d689da7fc7e014597885d.zip |
initial commit
Diffstat (limited to 'roles/tuned/tasks')
-rw-r--r-- | roles/tuned/tasks/main.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/tuned/tasks/main.yml b/roles/tuned/tasks/main.yml new file mode 100644 index 0000000..36d2f16 --- /dev/null +++ b/roles/tuned/tasks/main.yml @@ -0,0 +1,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 |