charlesrocket.dotfiles
dotfiles_role
Deploy dotfiles from Git repositories.
Requirements
You need git
installed on the managed machines. You can use the git_role for this.
Installation
Add to requirements.yml
:
roles:
- name: charlesrocket.dotfiles
Example Playbook
- name: Playbook
hosts: all
roles:
- charlesrocket.dotfiles
Setting Variables
Example
dotfiles_repo: "https://github.com/charlesrocket/dotfiles.git" # The Git repository for dotfiles
dotfiles_repo_version: openbsd # The branch you want to track
dotfiles_repo_accept_hostkey: false # Disable strict host key checking
dotfiles_repo_force: false # Do not force git clone
dotfiles_repo_local_destination: "~/git/dotfiles" # Path for the local repository
dotfiles_home: "~" # Path to store local dotfiles
dotfiles_files: # List of dotfiles to track
- .config/mc/ini
- .zshrc