Code Monkey home page Code Monkey logo

dotfiles's Introduction

Sway Acid Dark

Build Status

Sway fish pure waybar neovim

alt tag

Tiny irc client

alt tag

Firefox/Tabliss Wofi

alt tag

Connman/Thunar GTK Theme

alt tag

Why Ansible ?

  • Modularity: Roles as modules.
  • Factorization: It uses jinja2 templating engine.
  • Simplicity: No agent, only SSH, available via pip.
  • Flexibility: Push your dotfiles from/to any hosts.
  • Toolbox: Dry-run mode, diff mode, secrets encryption, tags...

How to

Use carefully, backup your home before using !
You should use --check and --diff to dryrun first.

Check details in roles/*/README.md.

This project only manages dotfiles.
To install required packages, use arch-config or nix-config.

1. Fork Me!
2. Clone your repo
git clone https://github.com/*/dotfiles

Then, configure desktop environment in group_vars/all.yml.

3. Configure inventory

Create inventory file from template.

cd dotfiles
cp hosts.template hosts

Add your hostnames in section:

  • cli: only cli dotfiles
  • desktop: cli dotfiles + desktop environment
    Define which user will get configurations with ansible_user var.
a. localhost run
[cli]
[desktop]
localhost ansible_connection=local
b. multiple hosts run

Note: desktop hosts can't use root.

[cli]
server1 ansible_user=root
[desktop]
host1 ansible_user=user
host2 ansible_user=user2
4. Configure SSH

Push your SSH public key on all your users@hosts

ssh-copy-id -i path/to/ssh/key.pub user@host
5. (Dry)Run
ansible-playbook install.yml -CD
ansible-playbook install.yml

For desktop hosts, if ansible_user is sudoer, to install cli tools for root, use:

ansible-playbook install.yml -l host1 -b -K

Previously

dotfiles's People

Contributors

eoli3n avatar kellanclark avatar

Watchers

James Cloos 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.