Giter Club home page Giter Club logo

ansible-laptop's Introduction

laptop-ansible


GitHub Workflow Status
ansible laptop will set up my laptop to my liking. Supports both KDE and GNOME.
Explore the Ansible docs »


Tested on:

  • Arch Linux
  • Debian Sid
  • Fedora 33
  • Ubuntu 20.04 & 20.10
  • KDE Neon

Preface/Notes

Before starting, a few things must be configured on the OS.

Ubuntu/Debian

apt install -y python3-virtualenv python3-dev python3-wheel libxml2-dev libxslt-dev libssl-dev linux-headers-generic build-essential

Fedora

dnf install -y python3-virtualenv
dnf groupinstall -y "Development Tools"

Arch Linux

sudo pacman -S python-pip python-virtualenv base-devel

Setting up the Virtual Environment

Set up the virtual environment as follows:

mkdir ~/.venvs
python3 -m venv ~/.venvs/ansible
source ~/.venvs/ansible/bin/activate
pip install wheel
pip install ansible

Every time you work with Ansible, source the virtualenv (source ~/.venvs/ansible/bin/activate)

Downloading the required ansible collections from Ansible Galaxy

Download the required Ansible collections from galaxy by running the following command

ansible-galaxy install -r collections/requirements.yml

Configuration

Username can be changed from jeffrey to whatever you like in inventory/host_vars/localhost/user.yml GRUB password must be reconfigured by yourself in inventory/host_Vars/localhost/vault.yml by creating a new vault:

Create a new yaml file with the following content:

inventory/host_vars/localhost/vault.yml:

---
grub_PBKDF2: grub.pbkdf2.sha512.10000.....
user_fullname: Firstname Lastname
user_email: [email protected]
git_signingkey: 123412341234ABCD

Fill in the variable from the output of the following command:

grub-mkpasswd-pbkdf2

Encrypt the new yaml file:

ansible-vault encrypt inventory/host_vars/localhost/vault.yml

Please read through roles for an explanation on what it all does.

ansible-playbook playbooks/provision.yml

Sources

Icons made by Prosymbols from www.flaticon.com

ansible-laptop's People

Contributors

jbouter avatar

Watchers

 avatar

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.