Skip to content

Ansible role to install dotfile configuration files for macOS/Linux

License

Notifications You must be signed in to change notification settings

bmacauley/ansible-role-dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-role-dotfiles

Installs a set of dotfiles from a Git repository. By default it installs the bmacauley/dotfiles. You can use other dotfiles by changing the configuration.

Build status

Requirements

  • Git

Role variables

Default variables are in defaults/main.yml

dotfiles_repo: "https://github.com/bmacauley/dotfiles.git"

The git repository containing the dotfiles. Dotfiles should be laid out within the root directory of the repository

dotfiles_repo_accept_hostkey: no

Add a hostkey for the repo url if not added. If ssh_opts contains "-o StrictHostKeyChecking=no", this parameter is ignored.

dotfiles_repo_local_destination: "~/.dotfiles"

The local path where the dotfiles_repo will be cloned

dotfiles_home: "~"

The home directory where dotfiles will be linked. Generally, the default should work, but in some circumstances, or when running the role as sudo on behalf of another user, you may want to specify the full path.

dotfiles_files:
  - .bash_profile
  - .gitignore
  - .inputrc
  - .vimrc

The files from the dotfiles_repo that will be linked to the dotfiles_home

Dependencies

none

Example playbook

- hosts: localhost
  roles:
    - { role: ansible-role-dotfiles }

License

MIT

Author

Brian Macauley brian.macauley@gmail.com

Based on geerlingguy/ansible-role-dotfiles

About

Ansible role to install dotfile configuration files for macOS/Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published