mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
---
|
|
- name: Install Void nonfree repository if needed
|
|
tags: [packages]
|
|
community.general.xbps:
|
|
name: void-repo-nonfree
|
|
state: present
|
|
update_cache: true
|
|
when: "'void-repo-nonfree' in (host_packages | default([]) + void_packages_base | default([]))"
|
|
|
|
- name: Refresh XBPS cache after enabling nonfree repository
|
|
tags: [packages]
|
|
ansible.builtin.command: xbps-install -S
|
|
changed_when: false
|
|
when: "'void-repo-nonfree' in (host_packages | default([]) + void_packages_base | default([]))"
|
|
|
|
- name: Synchronize and upgrade Void Linux packages
|
|
tags: [packages]
|
|
community.general.xbps:
|
|
update_cache: true
|
|
upgrade: true
|
|
|
|
- name: Install packages on Void Linux
|
|
tags: [packages]
|
|
community.general.xbps:
|
|
name: >-
|
|
{{
|
|
(common_packages | default([]))
|
|
+ (void_packages_base | default([]))
|
|
+ (profile_packages | default([]))
|
|
+ (desktop_x11_packages | default([]))
|
|
+ (host_packages | default([]))
|
|
}}
|
|
state: present
|
|
update_cache: false
|