Ansible自动化运维( 四 )

pip install --upgrade pyasn1

注:此时你执行absible可能还有错误 , 继续更新python依赖软件

pip install --upgrade cryptography

再执行ansible , 成功!!!

配置文件

ansible应用程序的主配置文件:/etc/ansible/ansible.cfgHost Inventory定义管控主机:/etc/ansible/hosts

Ansible帮助信息

ansible-doc -l  获取模块信息

ansible-doc -s module_name  查询指定模块的使用信息

如:ansible-doc -s ping

推荐阅读