Compare commits
3 Commits
cda28a2c4e
...
bd29c74d21
| Author | SHA1 | Date | |
|---|---|---|---|
| bd29c74d21 | |||
| eb70ee7a34 | |||
| 816ff990b3 |
@@ -171,6 +171,8 @@
|
||||
|
||||
- include_tasks: tasks/workstation/shared/settings/services.yml
|
||||
|
||||
- include_tasks: tasks/workstation/linux/software/tlp.yml
|
||||
|
||||
- include_tasks: tasks/workstation/shared/settings/templates.yml
|
||||
|
||||
# Final Tasks (SLOW) #
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
# 20260716 - Hyperling
|
||||
# Begin customizing Cinnamon's dconf similar to GNOME.
|
||||
|
||||
# Favorites are handled in .config/cinnamon/spices/group*/*.json files.
|
||||
# Does not seem as easy as GNOME and its dconf settings.
|
||||
# Cinnamon does use some dconf though.
|
||||
|
||||
- name: Workstation | Linux | Software | Cinnamon | Facts | Debian Derivitives
|
||||
set_fact:
|
||||
cinnamon_package: task-cinnamon-desktop
|
||||
when: ansible_distribution in ("Debian", "Devuan")
|
||||
|
||||
- name: Workstation | Linux | Software | Cinnamon | Install
|
||||
- package:
|
||||
name: "{{ cinnamon_package }}"
|
||||
status: present
|
||||
refresh_cache: yes
|
||||
@@ -14,25 +14,34 @@
|
||||
tlp_service: "tlp"
|
||||
ppd_package: "power-profiles-daemon"
|
||||
ppd_service: "power-profiles-daemon"
|
||||
acf_package: "auto-cpufreq"
|
||||
acf_service: "auto-cpufreq"
|
||||
|
||||
## Conflicts ##
|
||||
|
||||
- name: Workstation | Linux | Software | TLP | Conflicts | Disable
|
||||
service:
|
||||
name: "{{ ppd_package }}"
|
||||
state: stopped
|
||||
enabled: false
|
||||
#- name: Workstation | Linux | Software | TLP | Conflicts | Disable
|
||||
# service:
|
||||
# name: "{{ item }}"
|
||||
# state: stopped
|
||||
# enabled: false
|
||||
# loop:
|
||||
# - "{{ ppd_service }}"
|
||||
# - "{{ acf_service }}"
|
||||
# ignore_errors: yes
|
||||
|
||||
- name: Workstation | Linux | Software | TLP | Conflicts | Remove
|
||||
package:
|
||||
name: "{{ ppd_service }}"
|
||||
name: "{{ ppd_package }} {{ acf_package }}"
|
||||
state: absent
|
||||
|
||||
## Install TLP + Associated Software ##
|
||||
|
||||
- name: Workstation | Linux | Software | TLP | Install
|
||||
package:
|
||||
name: "{{ tlp }} {{ tlp_rdw }} {{ tlp_smart }}"
|
||||
name:
|
||||
- "{{ tlp }}"
|
||||
- "{{ tlp_rdw }}"
|
||||
- "{{ tlp_smart }}"
|
||||
update_cache: yes
|
||||
|
||||
## Configuration ##
|
||||
@@ -61,10 +70,10 @@
|
||||
- { "key": '^[\#]?DEVICES_TO_ENABLE_ON_AC', "value": '#DEVICES_TO_ENABLE_ON_AC=""'}
|
||||
- { "key": '^[\#]?DEVICES_TO_DISABLE_ON_BAT', "value": '#DEVICES_TO_DISABLE_ON_BAT=""'}
|
||||
# Help preserve battery life by not fully charging. #
|
||||
- { "key": '^[\#]?START_CHARGE_THRESH_BAT0', "value": 'START_CHARGE_THRESH_BAT0=75'}
|
||||
- { "key": '^[\#]?STOP_CHARGE_THRESH_BAT0', "value": 'STOP_CHARGE_THRESH_BAT0=80'}
|
||||
- { "key": '^[\#]?START_CHARGE_THRESH_BAT1', "value": 'START_CHARGE_THRESH_BAT1=75'}
|
||||
- { "key": '^[\#]?STOP_CHARGE_THRESH_BAT1', "value": 'STOP_CHARGE_THRESH_BAT1=80'}
|
||||
- { "key": '^[\#]?START_CHARGE_THRESH_BAT0', "value": '{{ "" if battery else "#" }}START_CHARGE_THRESH_BAT0=75'}
|
||||
- { "key": '^[\#]?STOP_CHARGE_THRESH_BAT0', "value": '{{ "" if battery else "#" }}STOP_CHARGE_THRESH_BAT0=80'}
|
||||
- { "key": '^[\#]?START_CHARGE_THRESH_BAT1', "value": '{{ "" if battery else "#" }}START_CHARGE_THRESH_BAT1=75'}
|
||||
- { "key": '^[\#]?STOP_CHARGE_THRESH_BAT1', "value": '{{ "" if battery else "#" }}STOP_CHARGE_THRESH_BAT1=80'}
|
||||
|
||||
## Enable + Start ##
|
||||
|
||||
|
||||
Reference in New Issue
Block a user