-
Activate the distribution by loading the fedora-rootfs using
wsl --import
. -
Log into the distribution and install the packages listed in Requirements.
-
Check out repository.
git clone https://github.com/peter-777/fedora-wsl-setup-playbook.git && \ cd ./fedora-wsl-setup-playbook
-
Execute the following command.
ansible-playbook -i inventories/hosts.ini -l fedora playbook.yml
-
After executing
wsl --shutdown
, log in again to the distribution as root and execute the following command.ansible-playbook -i inventories/hosts.ini -l fedora playbook.yml --tags after-started-systemd
- git
- ansible
- pathon3-passlib
dnf install git ansible python3-passlib
ansible-playbook -i inventories/hosts.ini -l testcontainer playbook.yml
destory playground
podman stop testcontainer
podman rm testcontainer
create private.yml
user_name: user
user_password: password
user_salt: saltstring
user_git_name: User Name
user_git_email: [email protected]
box_drive_path: C:/Users/UserName/Box
encrypt
ansible-vault encrypt private.yml
ansible-vault encrypt private.yml
ansible-playbook -i inventories/hosts.ini -l testcontainer playbook.yml -e @private.yml --ask-vault-pass
Edit roles/user_setup/files/append-bashrc.sh
as you like.
It will be written to the default user's .bashrc.
Edit roles/initial_setup/vars/main.yml
- Add CLI tools other than Quarkus CLI
- Drop the mounting task for Box Drive
- and so on.