Skip to Content
可编程网络自动化
book

可编程网络自动化

by Jason Edelman, Scott S. Lowe, Matt Oswalt
January 2023
Intermediate to advanced
458 pages
14h 16m
Chinese
Posts & Telecom Press
Content preview from 可编程网络自动化
316
9
3.
了解非核心厂商模块
如果没有在
Ansible
核心模块中找到某厂商的模块
,那么别忘了去检查一下
GitHub
页面。
有些公司尚未将其模块贡献给核心模块,其中包括:
HPE
Comware7
交换机;
Juniper
Junos
设备;
Citrix
Netscaler
设备;
Palo Alto
P
AN Security
设备。
所以,如果你正在寻找管理某个平台的模块,那么记得一定要检查
GitHub
,联系你的厂商。
4.
安装第三方模块
安装第三方开源模块或定制模块非常简单,只需几步即可搞定。
1.
选择要存储所有第三方模块的
Linux
系统路径。
2.
导航到该路径,对包含所需模块的各个仓库执行
git clone
3.
打开
Ansible
配置文件(
ansible.cfg
,将模块路径更新为执行克隆操作所在的目录。
4.
如果不知道
ansible.cfg
在哪里
,那么只需执行
ansible --version
即可。你会看到如下
输出。
ntc@ntc:~/testing$ ansible --version
ansible 2.3.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/etc/ntc/ansible/']
python version = 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2]
ntc@ntc:~/testing$ ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

Posts & Telecom Press, Nitin Hardeniya
Go程序设计语言

Go程序设计语言

艾伦A. A.多诺万, 布莱恩W. 柯尼汉
弱监督学习实用指南

弱监督学习实用指南

Wee Hyong Tok, Amit Bahree, Senja Filipi
Python实用技能学习指南

Python实用技能学习指南

Posts & Telecom Press, Robert Smallshire, Austin Bingham

Publisher Resources

ISBN: 9787115606181