Add desktop network setup
This commit is contained in:
parent
75594b5e43
commit
0e78c4a642
9 changed files with 123 additions and 6 deletions
|
|
@ -1,26 +1,39 @@
|
|||
- name: load desktop specific vars
|
||||
include_vars: desktop.yml
|
||||
when: not platform or platform == "desktop"
|
||||
when: platform == "desktop"
|
||||
|
||||
- name: load laptop specific vars
|
||||
include_vars: laptop.yml
|
||||
when: platform and platform == "laptop"
|
||||
when: platform == "laptop"
|
||||
|
||||
- name: install shared packages
|
||||
become: yes
|
||||
pacman:
|
||||
name: "{{ packages }}"
|
||||
|
||||
- name: install platform specific packages
|
||||
become: yes
|
||||
pacman:
|
||||
name: "{{ platform_packages }}"
|
||||
|
||||
- name: copy firewall template
|
||||
become: yes
|
||||
template:
|
||||
src: "{{ platform }}/nftables.j2"
|
||||
dest: "/etc/nftables.conf"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0600"
|
||||
notify: restart nftables
|
||||
|
||||
# TODO
|
||||
# - (systemd networkd/iwl) network setup
|
||||
# - nftables setup depending on platform
|
||||
# - network setup (laptop)
|
||||
# - daily systemd-timer
|
||||
# - weekly systemd-timer
|
||||
# - reflector setup
|
||||
# - pacman setup depending on platform (see include section for common options)
|
||||
|
||||
- include_tasks: network.yml
|
||||
- include_tasks: mpv.yml # TODO
|
||||
- include_tasks: mpd.yml # TODO
|
||||
- include_tasks: nfs.yml # TODO
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue