https://github.com/charlesrocket/dotfiles-role
Deploy dotfiles with Ansible
https://github.com/charlesrocket/dotfiles-role
ansible dotfiles git
Last synced: 8 months ago
JSON representation
Deploy dotfiles with Ansible
- Host: GitHub
- URL: https://github.com/charlesrocket/dotfiles-role
- Owner: charlesrocket
- License: mit
- Archived: true
- Created: 2020-03-25T01:15:41.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-18T10:51:47.000Z (about 3 years ago)
- Last Synced: 2025-01-10T15:17:23.338Z (over 1 year ago)
- Topics: ansible, dotfiles, git
- Homepage:
- Size: 126 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dotfiles_role
[](https://galaxy.ansible.com/charlesrocket/dotfiles)
[](https://github.com/charlesrocket/dotfiles_role/actions/workflows/molecule.yml)

Deploy dotfiles from git repositories
#### Requirements
`git` on managed machines ([git_role](https://github.com/charlesrocket/git_role))
### Install
`requirements.yml`:
```
roles:
- name: charlesrocket.dotfiles
```
##### Example
```
- name: Playbook
hosts: all
roles:
- charlesrocket.dotfiles
```
### Set variables
##### Example
```
dotfiles_repo: "https://github.com/charlesrocket/dotfiles.git" # dotfiles
dotfiles_repo_version: openbsd # branch to track
dotfiles_repo_accept_hostkey: false # StrictHostKeyChecking
dotfiles_repo_force: false # force git clone
dotfiles_repo_local_destination: "~/git/dotfiles" # local repo path
dotfiles_home: "~" # local dotfiles path
dotfiles_files: # files to track
- .config/mc/ini
- .zshrc
```