Nani-o / ansible-role-dotfiles

An Ansible role for managing dotfiles.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

dotfiles

This role clone a repository with dotfiles and links them to the current user home.

Compatibility

  • CentOS 6
  • CentOS 7
  • Ubuntu 14.04
  • Ubuntu 16.04
  • Ubuntu 18.04
  • Debian 8
  • Debian 9

Role Variables

  • dotfiles_git_repo

A git url to the repo holding the dotfiles. Here is mine for example.

dotfiles_repo: "https://github.com/Nani-o/dotfiles"
  • dotfiles_clone_path

Path where the repo will be cloned.

dotfiles_repo_clone_path: "{{ ansible_user_dir }}/dotfiles"
  • dotfiles_home_path

Path where the dotfiles will be linked.

dotfiles_home_path: "{{ ansible_user_dir }}"
  • dotfiles_excludes

A list of filename or regex patterns to exclude from linking into the home folder.

dotfiles_excludes:
  - .travis.yml

Example Playbook

    - hosts: servers
      roles:
         - { role: dotfiles }

License

MIT

Author Information

Sofiane MEDJKOUNE

About

An Ansible role for managing dotfiles.

License:MIT License


Languages

Language:YAML 100.0%