avinetworks.avisdk
弃用
⛔️ 弃用:该仓库不再支持,请考虑使用 https://github.com/vmware/ansible-collection-alb ,因为 该角色已迁移到 ansible collections。
使用此角色,您将能够使用最新版本和特定版本的 Avi Ansible 模块。
需求
- python >= 2.6
- avisdk
- requests-toolbelt
此角色需要 Ansible 2.0 或更高版本。需求在元数据文件中列出。
请在运行此模块之前从 pip 安装 avisdk。
pip install avisdk --upgrade
安装
要安装 AviSDK Ansible 模块,请在您将运行 Ansible 的机器上执行以下命令。
ansible-galaxy install -f avinetworks.avisdk
有关更多信息,请访问 http://docs.ansible.com/ansible/galaxy.html
角色变量
示例剧本
以下示例是通用的,适用于任何模块。
---
- hosts: localhost
connection: local
roles:
- role: avinetworks.avisdk
tasks:
- avi_<module_name>:
controller: 10.10.27.90
username: admin
password: password
......
此示例展示了如何使用该角色中包含的 avi_healthmonitor 模块。
---
- hosts: localhost
connection: local
roles:
- role: avinetworks.avisdk
tasks:
- avi_healthmonitor:
controller: 10.10.27.90
username: admin
password: password
api_version: 17.1
https_monitor:
http_request: HEAD / HTTP/1.0
http_response_code:
- HTTP_2XX
- HTTP_3XX
receive_timeout: 4
failed_checks: 3
send_interval: 10
successful_checks: 3
type: HEALTH_MONITOR_HTTPS
name: MyWebsite-HTTPS
更多示例请查看 https://github.com/avinetworks/devops/tree/master/ansible,在每个模块的 "EXAMPLES" 中也可以找到。
许可
Apache 2.0
作者信息
Avi Networks Avi Networks
关于项目
Ansible role that allows use of Avi Ansible Modules
安装
ansible-galaxy install avinetworks.avisdk
许可证
apache-2.0
下载
136.8k
拥有者