radek_sprta.dotfiles
Ansible角色:Dotfiles

从给定的Git仓库安装一组dotfiles。默认情况下,它将安装我(Radek Sprta的)dotfiles,但你可以使用任何符合常规格式的dotfiles。
要求
需要在管理的机器上安装git
(如有需要,可以使用geerlingguy.git
轻松安装)。
角色变量
可用的变量如下所列,并附有默认值(请参见defaults/main.yml
):
dotfiles_recursive: true
递归克隆连同子模块。
dotfiles_repo: "https://gitlab.com/radek-sprta/dotfiles.git"
dotfiles_repo_version: master
用于获取dotfiles的git仓库和分支/标签/提交哈希。dotfiles通常应位于仓库的根目录中。
dotfiles_repo_accept_hostkey: false
如果尚未添加,则为repo网址添加主机密钥。如果ssh_opts包含“-o StrictHostKeyChecking=no”,则忽略此参数。
dotfiles_repo_local_destination: "~/dotfiles"
dotfiles_repo
将被克隆到的本地路径。
dotfiles_force_clone: false
当设置为true时,将强制克隆该仓库,覆盖任何本地更改。
dotfiles_home: "~"
dotfiles将链接到的主目录。通常情况下,默认值应该有效,但在某些情况下,或当以sudo身份为其他用户运行角色时,您可能想要指定完整路径。
dotfiles_files:
- ansible.cfg
- config/fish
- config/flake8
- config/yakuakerc
- gitconfig
- gitignore_global
- gitmessage
- inputrc
- selected_editor
- tmux.conf
- vim
- vimrc
应链接到dotfiles_home
的dotfiles仓库中的哪些文件。
dotfiles_start_with_dot: false
仓库中的文件是否以点开头。
示例剧本
- hosts: localhost
roles:
- { role: radek_sprta.dotfiles }
许可
MIT
作者信息
Radek Sprta mail@radeksprta.eu。基于Jeff Geerling的dotfiles角色。
关于项目
Install a set of dotfiles from a given repository.
安装
ansible-galaxy install radek_sprta.dotfiles
许可证
mit
下载
173
拥有者