The ansible-role-tuned Ansible playbook manages the installation, configuration, and activation of the tuned service.
Tuned is a dynamic adaptive system tuning tool used in Linux environments to optimize performance by adjusting various system settings dynamically. It provides pre-defined profiles that target specific use cases, such as high throughput, low latency, and energy saving, and automatically applies these configurations based on system activity.
For high traffic servers, using Tuned is beneficial as it can enhance network throughput and responsiveness by adjusting parameters like CPU frequency scaling, I/O scheduling, and network stack settings. This optimization results in improved server performance, reduced latency, and better handling of high loads, ultimately leading to a more efficient and reliable infrastructure for handling significant network traffic.
Features
- Install tuned and configure it using the Ansible variables:
tuned_daemon,tuned_dynamic_tuning,tuned_sleep_interval,tuned_update_interval, andtuned_recommend_command. - Activate the specified tuned profile using the
tuned_profilevariable. (When thetuned_profileis not set, the role installs only tuned.) - Supports Debian/Ubuntu and RedHat family based operating systems.
Usage
Example Playbook
Here is an example of how to use ansible-role-tuned after installing it in the roles/tuned directory:
- hosts: SERVER
roles:
- {role: tuned,
tuned_profile: "throughput-performance"}
Author and license
Copyright (C) 2020-2026 James Cherti.
Distributed under terms of the MIT license.
Links
Related posts:
- ansible-role-apt – An Ansible role that manages the APT configuration and updates the /etc/apt/sources.list for Debian and Ubuntu systems
- ansible-role-reniced – An Ansible role that configures reniced on Debian and Ubuntu based operating systems
- ansible-role-auto-upgrade – An Ansible role that automates upgrading Linux operating systems
- quick-sdcv.el, a package that enables Emacs to function as an offline dictionary using sdcv
- Ansible: Reintegrating /etc/rc.local in Linux systems that use Systemd as their init system
- Ansible: Installing and configuring Gitolite using Ansible for secure Git repository management
- Gentoo Linux: Printer driver for the Brother QL-1110NWB
- Emacs Theme: Tomorrow Night Deepblue, a beautiful theme with a deep blue background
- Emacs quick-fasd: Integrate Fasd for fast file and directory navigation
- Emacs Evil Mode: How to restore both the line and column number of a mark, not just the line number
- Making ‘cron’ notify the user about a failed command by redirecting its output to stderr only when it fails (non-zero exit code)
- jc-dotfiles – A collection of configuration files for UNIX/Linux systems
- Configuring Linux on a ThinkPad T420s Laptop (Debian, Ubuntu, Linux Mint…)
- The Importance of Backups: Why Failing to Create or Test Them Leads to Regret
- Linux: Setting the default GDM login monitor in a multi-monitor setup using GNOME display settings
- Bash shell: Interactive Menu to Insert any String from the Tmux Scrollback Buffer Into the Shell Prompt
- Installing Arch Linux onto a separate partition from an existing Debian-based distribution (Ubuntu, Debian, Linux Mint…), without using the Arch Linux installation media
- 13 Useful GNOME Shell Extensions for a Better Desktop Experience (Available in the official Debian repositories or on the GNOME Extensions website for other distributions)
- Emacs flymake-ansible-lint.el – A Flymake backend for ansible-lint
- Pathaction, a universal Makefile for your entire filesystem: Run rule-driven commands on any file or directory