Confguration of dotfiles on a Linux based environment
- Installs RCM
- Clone dotfile repository
- Create symlinks via rcup
- Create global .gitconfig
Run molecule test
for testing this role via Docker
Variable | Description | default |
---|---|---|
dotfiles_repo_url | URL of repo to clone for use with RCM | https://github.com/Allaman/dotfiles.git |
gitconfig.name | Name of global git config | Michael |
gitconfig.username | Username of global git config | allaman |
gitconfig.mail | Mail of global git config | [email protected] |
gitconfig.credential_cache | Cache git credentials | true |
gitconfig.credential_cache_timeout | How long to store git credentials | 3600 |
gitconfig.delta | Use delta as git diff enhancement | true |
gitconfig.neovim_remote | Use NeoVim as global diff tool | true |
- ansible-role-basic
---
- name: Playbook
hosts: localhost
connection: local
pre_tasks:
- set_fact:
dotfiles_path: "{{ ansible_env.HOME }}/.dotfiles"
gitconfig:
name: infratest
username: test
mail: [email protected]
credential_cache: "false"
credential_cache_timeout: 600
delta: "false"
neovim_remote: "false"
roles:
- ansible-role-dotfiles
MIT