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:
@@ -0,0 +1,8 @@
|
||||
---
|
||||
# Fedora WSL mirrors the Ubuntu WSL development profile without installing
|
||||
# alternative application runtimes.
|
||||
fedora_excluded_packages:
|
||||
- flatpak
|
||||
fedora_removed_packages:
|
||||
- flatpak
|
||||
- snapd
|
||||
6
ansible/inventory/host_vars/deadalus-fedora-wsl.yml
Normal file
6
ansible/inventory/host_vars/deadalus-fedora-wsl.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
hostname: deadalus-fedora-wsl
|
||||
workstation_wsl_windows_user_home: /mnt/c/Users/FABIOSCOTTODISANTOLO
|
||||
|
||||
host_packages: []
|
||||
host_enabled_services: []
|
||||
@@ -10,6 +10,8 @@ all:
|
||||
ansible_connection: local
|
||||
nymph:
|
||||
ansible_connection: local
|
||||
deadalus-fedora-wsl:
|
||||
ansible_connection: local
|
||||
|
||||
platform_freebsd:
|
||||
hosts: {}
|
||||
@@ -53,7 +55,7 @@ all:
|
||||
|
||||
ubuntu:
|
||||
children:
|
||||
workstation_dev_wsl:
|
||||
workstation_dev_wsl_ubuntu:
|
||||
ubuntu_server:
|
||||
|
||||
workstation:
|
||||
@@ -81,13 +83,24 @@ all:
|
||||
hosts: {}
|
||||
|
||||
workstation_dev_fedora:
|
||||
hosts: {}
|
||||
children:
|
||||
workstation_dev_wsl_fedora:
|
||||
|
||||
workstation_dev_wsl:
|
||||
children:
|
||||
workstation_dev_wsl_ubuntu:
|
||||
workstation_dev_wsl_fedora:
|
||||
|
||||
workstation_dev_wsl_ubuntu:
|
||||
hosts:
|
||||
deadalus-wsl:
|
||||
ansible_connection: local
|
||||
|
||||
workstation_dev_wsl_fedora:
|
||||
hosts:
|
||||
deadalus-fedora-wsl:
|
||||
ansible_connection: local
|
||||
|
||||
ubuntu_server:
|
||||
hosts:
|
||||
prometheus:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -77,6 +77,13 @@
|
||||
roles:
|
||||
- profile_workstation_dev_common
|
||||
|
||||
- name: Configure Fedora WSL workstation development layer
|
||||
hosts: workstation_dev_wsl_fedora
|
||||
become: true
|
||||
|
||||
roles:
|
||||
- profile_workstation_dev_wsl
|
||||
|
||||
- name: Configure native Linux workstation host layer
|
||||
hosts: workstation_host_linux
|
||||
become: true
|
||||
@@ -85,7 +92,7 @@
|
||||
- profile_workstation_gnome
|
||||
|
||||
- name: Configure WSL workstation development layer
|
||||
hosts: workstation_dev_wsl
|
||||
hosts: workstation_dev_wsl_ubuntu
|
||||
become: true
|
||||
|
||||
roles:
|
||||
|
||||
Reference in New Issue
Block a user