Skip to content

scottweitzner/ansible-dotfile-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scottweitzner.dotfile-sync

Manage your dotfiles without thinking about symlinks
This handles the linking process, you handle the pushes to your repo


Role Variables

working_directory: "{{ home_directory }}"

the working directory to pull your git repo into and link dotfiles from


dotfiles_git_repo: git@github.com:scottweitzner/ansible-dotfile-sync.git

the git repo where your dotfiles are stored


files_to_sync:
- name: alacritty.yml
  file_name: alacritty.yml
  dest: .config/alacritty

list of files to sync. must include name and file_name but dest is optional

Note:

  • base directory for file_name is working_directory/dotfiles (found here)
  • base dirctory for dest is home_directory (found in vars/main.yml)

Example Playbook

---
- hosts: localhost
  roles:
    - role: ansible-dotfile-sync
      vars:
        working_directory: /Users/me 
        dotfiles_git_repo: git@github.com:me/dotfiles.git
        files_to_sync:
        - name: zsh
          file_name: .zshrc
        - name: alacritty.yml
          file_name: alacritty.yml
          dest: .config/alacritty


License

BSD

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published