aruhier.ansible_role_tlp

Ansible Role: tlp

Build Status

This Ansible role is used to install and set up TLP, a tool for managing power on Linux systems.

Role Variables

Here are the configurable options for TLP, defined in YAML format:

tlp_enable: true                     # Enable TLP
tlp_default_mode: "AC"               # Default mode (AC or Battery)

# Disk idle time settings
tlp_disk_idle_secs:
  ac: 0                               # Idle time when plugged in (in seconds)
  bat: 2                              # Idle time on battery (in seconds)

# Maximum lost work time settings
tlp_max_lost_work_secs:
  ac: 15                              # Max time for lost work when plugged in
  bat: 60                              # Max time for lost work on battery

# CPU scaling settings
tlp_cpu_scaling_governor:
  ac: "powersave"                     # CPU governor when plugged in
  bat: "powersave"                    # CPU governor on battery

# Energy performance settings
tlp_energy_perf_policy:
  ac: "performance"                   # Energy policy when plugged in
  bat: "powersave"                    # Energy policy on battery

# Disk device settings
tlp_disk_devices: "sda sdb"          # List of disk devices to configure
tlp_disk_apm_level:
  ac: "254 254"                       # APM level when plugged in
  bat: "128 128"                      # APM level on battery

# SATA settings
tlp_sata_linkpwr:
  ac: "max_performance"               # SATA link power when plugged in
  bat: "min_power"                    # SATA link power on battery

# Additional power management settings (similar configurations for different states)
tlp_runtime_pm:
  ac: "on"                            # Runtime power management when plugged in
  bat: "auto"                         # Runtime power management on battery
tlp_usb_autosuspend: 1                # Enable USB autosuspend

The variable names use a specific pattern to indicate whether they depend on AC (when plugged in) or battery (BAT).

Some variables may not have specific values here; they are included for reference. If you find any missing options from new TLP releases, feel free to request them.

Dependencies

This role has no external dependencies.

License

This tool is licensed under the BSD license. If you find bugs, have questions, or want to contribute, please let me know!

Informazioni sul progetto

Installs TLP

Installa
ansible-galaxy install aruhier.ansible_role_tlp
Licenza
other
Download
216
Proprietario