Skip to content

k0emt/fedora-workstation-ansible

Repository files navigation

Fedora Workstation Ansible

License: CC BY-NC 4.0

This project contains ansible resources for setting up a new Fedora workstation.

The following roles will be set up, with descriptions providing a minimum of what will be installed:

Project Structure

fedora-workstation-ansible/
├── README.md
├── workstation.yml
└── roles/
    ├── role_name/
    │   ├── handlers/
    │   ├── tasks/
    │   │   └── main.yml
    ...

Initial bootstrap

How to do the initial bootstrap of getting ansible on the system:

sudo dnf install ansible

Running the playbook

  • Clone the repo onto your computer.
  • It is fine to use https at this point.
  • Change into the cloned directory.
  • To run the playbook on your local workstation, use the following command:
ansible-playbook -i localhost, -c local workstation.yml --ask-become-pass

Gotchas

If you have already enrolled a fingerprint, this is likely to block the playbook from properly running. It can get stuck at gathering facts. Delete enrolled fingerprints and try to run again.

If there is a failure downloading during a task, simply run the playbook again.

Install Custom roles

To run with selected roles, you can modify the workstation.yml file or duplicate it. Alter the duplicated file to have only the roles you want to run. You can do this by adding a # before the role name. On the command line specify the new file name instead of workstation.yml

Post install

Run p10k configure in a new terminal if you aren't prompted to set up powerlevel 10K.

Set up TensorFlow in virtual environment.

The client tool for postgresql is installed. However, you will need to install the postgresql server if you want a local server.

Install nvm and a version of node.

Install mongodb mongosh

Install dBeaver

Install AWS CLI

Developer Information

How to do a dry run of the playbook

ansible-playbook -i localhost, -c local workstation.yml --check --ask-become-pass

Testing with WSL2 or a container

Testing using Virtualization

You can use Boxes on a Fedora Workstation. Or if you have a Windows Pro OS you can use Hyper-V. Create a VM with a clean instance of Fedora Workstation. To test your changes, clone down your forked repo. Switch to the appropriate branch and test installing

About

Using ansible to setup a Fedora Linux workstation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published