Skip to content

gleichda/ansible-role-dotfiles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-role-dotfiles

Confguration of dotfiles on a Linux based environment

  • Installs RCM
  • Clone dotfile repository
  • Create symlinks via rcup
  • Create global .gitconfig

Test

Run molecule test for testing this role via Docker

Requirements

Role Variables

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

Dependencies

  • ansible-role-basic

Example Playbook

---
- 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

License

MIT

About

Ansible role to configure my dotfiles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jinja 77.3%
  • Python 22.7%