- 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: 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: copy reflector configuration become: yes template: src: "reflector.j2" dest: "/etc/xdg/reflector/reflector.conf" owner: root group: root mode: "0600" # TODO # - 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 - include_tasks: postgres.yml # TODO - include_tasks: syncthing.yml # TODO depending on platform - include_tasks: git.yml # TODO (identify) - include_tasks: openvpn.yml # TODO depending on platform - include_tasks: timer.yml