GithubHelp home page GithubHelp logo

ansible-role-dotfiles's Introduction

Anisble Role for Dotfiles

This role is for setting up an environment that allows you to back up, restore, and sync your dotfiles via git.

Requirements

This role requires the following prerequisites:

  • Ansible 2.8 or later
  • A git repo that contains your dotfiles.

Role Variables

Default Variables

The folder path of your dotfiles

dotfiles_folder_path: "$HOME/dotfiles"

The git repository containing your dotfiles (https://github.com/user/repo.git)

dotfiles_git_repo: ""

The location of your .bashrc file

bashrc_path: "~/.bashrc"

Your alias for git

dotfiles_cmd_alias_name: "dotfiles"

Your commands would look like this

dotfiles status
dotfiles pull
dotfiles add .bashrc
dotfiles commit -m "added ~/.bashrc"
dotfiles push

Note: If the dotfiles_cmd_alias_name variable is empty, then the role will set it to dotfiles

The location of your git binary

git_binary_path: "usr/bin/git"

Your desired git work tree path (note: this is where your dotfiles will exist)

git_work_tree_path: "$HOME"

Dependencies

None

Example Playbook

- hosts: localhost
  name: "Setting Up Your Dotfiles Workspace!"
  roles:
    - role: dotfiles
      dotfiles_git_repo: "https://github.com/DreDizzle22/dotfiles.git"
      dotfiles_cmd_alias_name: "dot"

ansible-role-dotfiles's People

Contributors

dredizzle22 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.