-
Notifications
You must be signed in to change notification settings - Fork 25
/
hosts
81 lines (61 loc) · 2.6 KB
/
hosts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# This is the default ansible 'hosts' file.
#
# It should live in /etc/ansible/hosts
#
# - Comments begin with the '#' character
# - Blank lines are ignored
# - Groups of hosts are delimited by [header] elements
# - You can enter hostnames or ip addresses
# - A hostname/ip can be a member of multiple groups
# Ex 1: Ungrouped hosts, specify before any group headers.
## green.example.com
## blue.example.com
## 192.168.100.1
## 192.168.100.10
# Ex 2: A collection of hosts belonging to the 'webservers' group
## [webservers]
## alpha.example.org
## beta.example.org
## 192.168.1.100
## 192.168.1.110
# If you have multiple hosts following a pattern you can specify
# them like this:
## www[001:006].example.com
# Ex 3: A collection of database servers in the 'dbservers' group
## [dbservers]
##
## db01.intranet.mydomain.net
## db02.intranet.mydomain.net
## 10.25.1.56
## 10.25.1.57
# Here's another example of host ranges, this time there are no
# leading 0s:
## db-[99:101]-node.example.com
#这里主要是用来定义你要部署的vimidc主机组,如果你要部署其他的可以添加主机列表
#将本地的ssh秘钥拷贝到远程主机后修改group_vars下面的vimide文件即可
[vimide]
192.168.98.129
#这里主要用来定义VIM-IDE构建参数
[all:vars]
#定义Ansible的主机环境信息,ansible_connection=local为本地执行部署,远程部署其他主机则修改user,port。pass即可!
ansible_connection=smart
ansible_ssh_user="root"
ansible_ssh_pass="buzhidao"
ansible_ssh_port=22
#定义是否需要安装python3,如果本地有python3环境则设置python_install变量为no,同时修改python_version为本地python的具体版本,如果没有python3环境,则默认版本为3.8.15
python_install="yes"
python_version="3.8.15"
#定义powerline 使用的python版本格式为:python+版本号 例如:python3.7
powerline_python_version="python3.8"
#YCM使用的python版本
ycm_python_binary_path="/usr/bin/python3.8"
#YCM安装过程中python3第三方包的路径Redhat默认是/usr/local/lib/python3.7/site-packages
ycm_python_third_party_package='/usr/lib/python3.8/site-packages'
#这里定义YouCompleteMe支持的语言种类(python默认是支持的) 目前支持的参数为--java-completer --go-completer 多个参数之间用空格分隔注意--clang-completer是必须带的默认参数
build_params="--clang-completer"
# 自定义go二进制版本
go_version="1.10.3"
#新创建文件头模板中的作者名字
author="Sun~Shell"
#主要用来定义创建的模板文件的主机名
hostname="{% for h in groups['vimide'] %} {{ hostvars[h]['ansible_hostname'] }} {% endfor %}"