Detect platform through laptop-detect

This commit is contained in:
Sonny Bakker 2020-11-29 13:16:19 +01:00
parent 1c80c7277f
commit e821d049eb
4 changed files with 38 additions and 19 deletions

View file

@ -1,30 +1,18 @@
- name: load desktop specific vars
include_vars: desktop.yml
when: platform == "desktop"
- name: load laptop specific vars
include_vars: laptop.yml
when: platform == "laptop"
- name: install shared packages
become: yes
pacman:
name: "{{ packages }}"
- name: detecting platform
include_tasks: platform.yml
- 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
- name: configuring network
include_tasks: network.yml
- name: copy reflector configuration
become: yes
@ -40,7 +28,6 @@
# - pacman setup depending on platform (see include section for common options)
# - laptop power saving configuration
- include_tasks: network.yml
- include_tasks: mpv.yml # TODO
- include_tasks: mpd.yml # TODO
- include_tasks: nfs.yml # TODO