Feat: replace service to systemd and add laptop for Combava
This commit is contained in:
parent
52a4857513
commit
effec4039a
@ -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
13
tasks/laptop.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user