Giter Club home page Giter Club logo

ansible-silverblue's Introduction

ansible-silverblue

You can use this repository to configure a Fedora Silverblue workstation or laptop with Ansible. It will make it easier to apply the same settings to multiple hosts, saving you from having to manually configure your computer over and over again.

Included Roles

The main parts of this project can be seen in the 'roles' directory. Each role included there contains a README file that explains what the role is and how to use it. For starters, here is a brief summary of each role:

  • layered_packages: Install or remove packages into / from the base rpm-ostree image.
  • flatpaks: Install desired flatpak applications.
  • fonts: Install custom fonts (this role is under the GPLv3 License).
  • gnome_settings: Set various GNOME desktop settings. The role makes these changes via dconf.
  • os_updates: Configure the auto-update policy for the host.

Variables

I've consolidated the project's variables into the group_vars/all file. This makes it easy to update the project's variables from a single location. You should customize the values in that file to set what changes get applied in the various roles.

Setup

Clone this repository with:

  • git clone https://github.com/j1mc/ansible-silverblue.git

Install needed dependencies with:

  • cd ansible-silverblue
  • python3 -m venv venv
  • source venv/bin/activate
  • pip3 install -r requirements.txt
  • ansible-galaxy collection install -r requirements.yml

... then make edits to the group_vars/all file to customize this project to make it do what you want it to do.

Run the Playbooks

This command will run all of the included playbooks:

ansible-playbook -i hosts -l this_host -K -v playbook_base.yml

If you want to run any of the roles individually, please review that role's README file for the needed command.

License

Unless otherwise indicated in the individual role, this project is under the BSD License.

Author

ansible-silverblue's People

Contributors

j1mc avatar nitrousoxide avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ansible-silverblue's Issues

Layer downloaded RPMs?

Is there a way to specify an RPM to download (e.g. Dropbox) and have rpm-ostree install it?
I do this manually for Dropbox and Vivaldi Browser...

There is already a Dropbox flatpak but doesn't work very well lately. So I've resorted to using their RPM again.

Fonts installation is hardcoded to jcampbell

Hi Jim, thanks for working on this, I"m hoping to adapt this playbook to my needs. Fonts role doesn't complete unless you're jcampbell. Modifying it to my username completes successfully.

Also should the homedir be: /var/home/$USER?

user: jcampbell
homedir: /home/jcampbell

How to override a package from the base layer?

This is more of a question than a bug, is there a way in the layered packages task to set override for packages? Use case example is replacing the default Firefox with the one from mozilla's flatpak.

Needs to check for rpm-ostree being idle

rpm-ostree immediately checks on boot to do a refresh-md, rendering the playbook useless until that process is done. It tends to not be super-fast, we added a check in ublue to just wait until it's ready.

Settings task fails due to missing psutil

On a clean install, the log repeats complaining about each key.

TASK [settings : Apply desired settings via dconf] ***********************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'psutil'
failed: [localhost] (item={'key': '/org/gnome/settings-daemon/plugins/color/night-light-enabled', 'value': 'true'}) => changed=false 
  ansible_loop_var: item
  item:
    key: /org/gnome/settings-daemon/plugins/color/night-light-enabled
    value: 'true'
  msg: Failed to import the required Python library (psutil) on fedora's Python /usr/bin/python3. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'psutil'
failed: [localhost] (item={'key': '/org/gnome/desktop/privacy/remember-recent-files', 'value': 'true'}) => changed=false 
  ansible_loop_var: item

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.