四、Ansible的Galaxy包管理器

一、什么是Ansible Galaxy?

Ansible Galaxy是Ansible的第三方插件管理和安装工具,其实就是包管理软件。作用类似于Ubuntu的apt,Centos的yum,Python的pip

 

二、Ansible Galaxy官网

https://galaxy.ansible.com/

 

三、查找想要的第三方模块

  例如查找Juniper模块,第二个为Juniper公司自研的ansible第三方模块,比ansible公司针对Juniper设备出品的Junos_xx模块,兼容性要更好,推荐使用

 

四、第三方模块文档学习

 

五、安装第三方模块

ansible-galaxy  install  xxx

  例如:ansible-galaxy install Juniper.junos  #前提先安装了pip install junos-eznc , pip install jxmlease

 

posted @ 2019-05-24 16:55  森林326  阅读(1360)  评论(0编辑  收藏  举报