diff --git a/.ansible/roles/linux_desktop/tasks/software.yaml b/.ansible/roles/linux_desktop/tasks/software.yaml index 1524e1e..97ba35f 100644 --- a/.ansible/roles/linux_desktop/tasks/software.yaml +++ b/.ansible/roles/linux_desktop/tasks/software.yaml @@ -64,3 +64,13 @@ - name: Refresh font cache command: 'fc-cache -f' when: fontfile.stat.exists == false + +- name: Platform specific packages + tags: + - install + - platform + package: + name: "{{ item }}" + state: present + loop: "{{ lookup('vars', lookup('vars', 'ansible_system_vendor') + '_' + lookup('vars', 'ansible_form_factor') + '_packages') }}" + become: true diff --git a/.ansible/roles/linux_desktop/vars/main.yaml b/.ansible/roles/linux_desktop/vars/main.yaml index edd7a8b..891842f 100644 --- a/.ansible/roles/linux_desktop/vars/main.yaml +++ b/.ansible/roles/linux_desktop/vars/main.yaml @@ -48,3 +48,8 @@ gnome_extension_ids: - 28 # gtile - 1386 # notification counter - 19 # user themes + +# Platform specific packages +# Format: systemvendor_formfactor_packages +"Apple Inc._Laptop_packages": + - mbpfan