Feat: replace service to systemd and add laptop for Combava

This commit is contained in:
Bertrand Benjamin 2019-05-11 11:22:05 +02:00
parent 52a4857513
commit effec4039a
2 changed files with 16 additions and 2 deletions

View File

@ -20,16 +20,17 @@
- include: tasks/dotfiles.yml
- include: tasks/dotfiles_desktop.yml
- include: tasks/home_autofs.yml
- include: tasks/laptop.yml
# - include: tasks/nfs_share.yml
#- include: tasks/wine.yml
# - include: tasks/arch_virtualbox.yml
handlers:
- name: restart sshd
service:
systemd:
name: sshd
state: restarted
- name: restart nfs
service:
systemd:
name: nfs-server
state: restarted

13
tasks/laptop.yml Normal file
View File

@ -0,0 +1,13 @@
---
- name: Install laptop powermanagement (Archlinux)
pacman:
name:
- tlp
state: present
when: ansible_distribution != 'Debian'
- name: enable tlp
systemd:
name: tlp
enabled: yes
state: started