Add a tuned role that installs tuned and sets the throughput-performance profile
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
tuned:
|
||||||
|
profile:
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
- name: Install Packages
|
||||||
|
package:
|
||||||
|
name:
|
||||||
|
- tuned
|
||||||
|
- tuned-utils
|
||||||
|
- tuned-utils-systemtap
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
- import_tasks: ./install-packages.yml
|
||||||
|
|
||||||
|
- import_tasks: ./setup-service.yml
|
||||||
|
|
||||||
|
- import_tasks: ./set-profile.yml
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
- name: Set profile
|
||||||
|
command: tuned-adm profile throughput-performance
|
||||||
|
register: command
|
||||||
|
failed_when:
|
||||||
|
- "command.rc != 0"
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
- name: Make sure service is started
|
||||||
|
service:
|
||||||
|
name: tuned
|
||||||
|
enabled: true
|
||||||
|
state: "started"
|
||||||
Reference in New Issue
Block a user