issmirnov.dotfiles
Ansible 角色:Dotfiles
自动化的 dotfile 安装脚本。
需求
一个有效的 dotfiles 仓库,并有一个单独的安装命令。
角色变量
dotfiles_repo_url: https://github.com/issmirnov/dotfiles.git
dotfiles_target_dir: ~/.dotfiles
dotfiles_install_command: chmod +x install && ./install && reset
dotfiles_update: yes # 更新到最新版本
dotfiles_update_command: git pull
dotfiles_update_submodules: yes
示例剧本
- hosts: servers
vars:
dotfiles_repo_url: https://github.com/username/dotfiles.git
dotfiles_install_command: install.sh
roles:
- { role: issmirnov.dotfiles}
许可证
MIT
作者信息
Ivan Smirnov, http://ivansmirnov.name