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.yml
|
||||||
- include: tasks/dotfiles_desktop.yml
|
- include: tasks/dotfiles_desktop.yml
|
||||||
- include: tasks/home_autofs.yml
|
- include: tasks/home_autofs.yml
|
||||||
|
- include: tasks/laptop.yml
|
||||||
# - include: tasks/nfs_share.yml
|
# - include: tasks/nfs_share.yml
|
||||||
#- include: tasks/wine.yml
|
#- include: tasks/wine.yml
|
||||||
# - include: tasks/arch_virtualbox.yml
|
# - include: tasks/arch_virtualbox.yml
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- name: restart sshd
|
- name: restart sshd
|
||||||
service:
|
systemd:
|
||||||
name: sshd
|
name: sshd
|
||||||
state: restarted
|
state: restarted
|
||||||
- name: restart nfs
|
- name: restart nfs
|
||||||
service:
|
systemd:
|
||||||
name: nfs-server
|
name: nfs-server
|
||||||
state: restarted
|
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