【文件属性】:
文件名称:Ansible-角色:Ansible角色
文件大小:938KB
文件格式:ZIP
更新时间:2021-01-31 04:27:21
角色角色怎么用?
系统环境
操作系统: Centos 6.7 X64
的Python: 2.6.6
安装ansible和git
[root@node ~ ] # yum install -y ansible git
[root@node ~ ] # ansible --version
ansible 2.2.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
设置可以
关闭主机sshknown_hosts检查配置文件:/etc/ansible/ansible.cfg
59 host_key_checking = False
使用git克隆角色
[root@node roles] # git clone https://github.com/lework/Ansible-roles.git /etc/ansible/roles/
Initialized empty Git repository in /etc/ansible/role