mirror of
https://github.com/fscotto/infra.git
synced 2026-09-27 19:03:47 +00:00
Add profile for Fedora WSL
This commit is contained in:
@@ -112,6 +112,11 @@
|
||||
if 'workstation_dev_fedora' in group_names
|
||||
else []
|
||||
)
|
||||
+ (
|
||||
(workstation_dev_wsl_packages | default([]))
|
||||
if 'workstation_dev_wsl' in group_names
|
||||
else []
|
||||
)
|
||||
+ (
|
||||
(workstation_host_linux_packages_fedora | default(workstation_host_linux_packages | default([])))
|
||||
if 'workstation_host_linux' in group_names
|
||||
@@ -127,10 +132,29 @@
|
||||
)
|
||||
+ (host_packages | default([]))
|
||||
)
|
||||
| difference(fedora_excluded_packages | default([]))
|
||||
| unique
|
||||
}}
|
||||
state: present
|
||||
|
||||
- name: Remove excluded Fedora packages
|
||||
tags: [packages]
|
||||
ansible.builtin.dnf:
|
||||
name: >-
|
||||
{{
|
||||
(fedora_removed_packages | default([]))
|
||||
| select('in', ansible_facts.packages | default({}))
|
||||
| list
|
||||
}}
|
||||
state: absent
|
||||
when: >-
|
||||
(
|
||||
(fedora_removed_packages | default([]))
|
||||
| select('in', ansible_facts.packages | default({}))
|
||||
| list
|
||||
| length
|
||||
) > 0
|
||||
|
||||
- name: Add user to docker group
|
||||
tags: [packages]
|
||||
ansible.builtin.user:
|
||||
|
||||
Reference in New Issue
Block a user