Role - tuned

Role Documentation

Welcome to the “tuned” role documentation.

Role Defaults

This section highlights all of the defaults and variables set within the “tuned” role.

# All variables intended for modification should be placed in this file.

tuned_profile: throughput-performance
tuned_custom_profile: ''
tuned_isolated_cores: ''

# Packages installed on the local system. Allows user to define this list
# otherwise it will inherit from the OS specific variable file(s).
tuned_system_packages: '{{ _tuned_system_packages | default([]) }}'

Role Variables: redhat.yml

_tuned_system_packages:
- tuned
- tuned-profiles-cpu-partitioning

Molecule Scenarios

Molecule is being used to test the “tuned” role. The following section highlights the drivers in service and provides an example playbook showing how the role is leveraged.

Scenario: isolated

Molecule Inventory
hosts:
  all:
    hosts:
      instance:
        ansible_host: localhost
Example isolated playbook
- name: Converge
  become: true
  hosts: all
  vars:
    tuned_system_packages: tuned-profiles-cpu-partitioning
    tuned_profile: cpu-partitioning
    tuned_isolated_cores: '1'
  roles:
  - role: tuned

Scenario: default

Molecule Inventory
hosts:
  all:
    hosts:
      instance:
        ansible_host: localhost
Example default playbook
- name: Converge
  become: true
  hosts: all
  roles:
  - role: tuned