Add laptop network configuration
This commit is contained in:
parent
c8e3c44d11
commit
cdcd86a7c3
6 changed files with 109 additions and 10 deletions
|
|
@ -35,16 +35,9 @@
|
|||
group: root
|
||||
mode: "0600"
|
||||
|
||||
- name: add reflector to weekly timer
|
||||
become: yes
|
||||
file:
|
||||
src: "/usr/lib/systemd/system/reflector.service"
|
||||
path: "/etc/systemd/system/weekly.target.wants/reflector.service"
|
||||
state: link
|
||||
|
||||
# TODO
|
||||
# - network setup (laptop)
|
||||
# - pacman setup depending on platform (see include section for common options)
|
||||
# - laptop power saving configuration
|
||||
|
||||
- include_tasks: network.yml
|
||||
- include_tasks: mpv.yml # TODO
|
||||
|
|
|
|||
|
|
@ -9,4 +9,28 @@
|
|||
notify: restart systemd-networkd
|
||||
when: platform == "desktop"
|
||||
|
||||
# TODO add laptop setup
|
||||
- name: setup laptop systemd networkd
|
||||
become: yes
|
||||
template:
|
||||
src: "laptop/network.j2"
|
||||
dest: "/etc/systemd/network/20-wireless.network"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
notify: restart systemd-networkd
|
||||
when: platform == "laptop"
|
||||
|
||||
- name: start systemd-resolved service
|
||||
become: yes
|
||||
systemd:
|
||||
name: systemd-resolved
|
||||
state: started
|
||||
enabled: yes
|
||||
|
||||
- name: start iwd service
|
||||
become: yes
|
||||
systemd:
|
||||
name: iwd
|
||||
state: started
|
||||
enabled: yes
|
||||
when: platform == "laptop"
|
||||
|
|
|
|||
|
|
@ -45,3 +45,11 @@
|
|||
loop:
|
||||
- "/etc/systemd/system/daily.target.wants"
|
||||
- "/etc/systemd/system/weekly.target.wants"
|
||||
|
||||
- name: add reflector to weekly timer
|
||||
become: yes
|
||||
file:
|
||||
src: "/usr/lib/systemd/system/reflector.service"
|
||||
path: "/etc/systemd/system/weekly.target.wants/reflector.service"
|
||||
state: link
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue