Add 'cloudbox' configuration.

This commit is contained in:
Andreas B. Mundt 2018-05-31 18:32:53 +03:00
parent d203da49c2
commit b1af7d31ec
16 changed files with 200 additions and 0 deletions

View file

@ -0,0 +1,6 @@
[Unit]
Description=Run powertop --auto-tune
[Service]
Type=oneshot
ExecStart=/usr/sbin/powertop --auto-tune

View file

@ -0,0 +1,9 @@
[Unit]
Description=Run powertop --auto-tune after boot
[Timer]
OnBootSec=1min
AccuracySec=1min
[Install]
WantedBy=timers.target

View file

@ -0,0 +1,5 @@
- name: enable powertop timer
systemd:
name: powertop.timer
enabled: yes
listen: "enable powertop timer"

View file

@ -0,0 +1,15 @@
- name: install some packages
apt: name={{ item }} state=latest
with_items:
- powertop
- name: install powertop.service
copy:
src: powertop.service
dest: /etc/systemd/system/powertop.service
- name: install powertop.timer
copy:
src: powertop.timer
dest: /etc/systemd/system/powertop.timer
notify: enable powertop timer