Giter Club home page Giter Club logo

ansible-dotfiles's Introduction

███████╗████████╗██████╗ ██╗   ██╗███╗   ███╗██████╗ ███████╗███████╗ █ ███████╗
██╔════╝╚══██╔══╝██╔══██╗██║   ██║████╗ ████║╚════██╗██╔════╝██╔════╝   ██╔════╝
███████╗   ██║   ██████╔╝██║   ██║██╔████╔██║ █████╔╝███████╗███████╗   ███████╗
╚════██║   ██║   ██╔══██╗██║   ██║██║╚██╔╝██║ ╚═══██╗╚════██║╚════██║   ╚════██║
███████║   ██║   ██║  ██║╚██████╔╝██║ ╚═╝ ██║██████╔╝███████║███████║   ███████║
╚══════╝   ╚═╝   ╚═╝  ╚═╝ ╚═════╝ ╚═╝     ╚═╝╚═════╝ ╚══════╝╚══════╝   ╚══════╝

██████╗  ██████╗ ████████╗███████╗██╗██╗     ███████╗███████╗
██╔══██╗██╔═══██╗╚══██╔══╝██╔════╝██║██║     ██╔════╝██╔════╝
██║  ██║██║   ██║   ██║   █████╗  ██║██║     █████╗  ███████╗
██║  ██║██║   ██║   ██║   ██╔══╝  ██║██║     ██╔══╝  ╚════██║
██████╔╝╚██████╔╝   ██║   ██║     ██║███████╗███████╗███████║
╚═════╝  ╚═════╝    ╚═╝   ╚═╝     ╚═╝╚══════╝╚══════╝╚══════╝

deploying dotfiles

Prerequisites:

Clone the repo git clone [email protected]:Strum355/dot-files.git

Checkout the pass git submodule with git submodule update --init

Run ansible-playbook deploy-dotfiles.yaml --ask-become-pass and input your password

how it works

In this repo, dotfiles are mananged through a combination of Ansible and GNU Stow to deploy all dotfiles and config at once.

When running the Ansible playbook, Stow is invoked on all directories in ./dotfiles. with the default target directory being ../.., which should be the home directory. If a target needs to be overridden, a directory can contain a .override file containing the new target directory. All source directories are merged with the target directores, so existing files aren't deleted.

This results in e.g.:

dotfiles/i3/.config/i3/ -> $HOME/.config/i3/
dotfiles/slick-greeter/ -> /etc/lightdm/

To install configs for a particular service, one can invoke stow manually in the dotfiles directory e.g. cd dotfiles && stow -t /target/directory fish. The commands invoked by Ansible are a bit more involved, to take into account the possible .override file and for output purposes.

ansible-dotfiles's People

Contributors

strum355 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

olipelz

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.