infoblox.nios_modules.nios_nsgroup_forwardingmember 模块 – 配置 Infoblox DNS 命名服务器转发成员组
注意
此模块是 infoblox.nios_modules 集合 (版本 1.7.1) 的一部分。
如果您使用的是 ansible
包,则可能已安装此集合。它不包含在 ansible-core
中。要检查它是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install infoblox.nios_modules
。您需要其他要求才能使用此模块,请参阅 要求了解详情。
要在剧本中使用它,请指定:infoblox.nios_modules.nios_nsgroup_forwardingmember
。
infoblox.nios_modules 1.7.0 中的新增功能
概要
添加和/或删除 Infoblox NIOS 服务器上的“转发成员”类型命名服务器组。此模块使用 Infoblox. WAPI 接口通过 REST 管理 NIOS
nsgroup:forwardstubserver
对象。
要求
执行此模块的主机需要以下要求。
infoblox_client
参数
参数 |
注释 |
---|---|
配置与该对象实例关联的文本字符串注释。提供的文本字符串将在对象实例上进行配置。 |
|
允许在对象实例上配置可扩展属性。此参数接受一组键/值对进行配置。 |
|
指定要使用的转发成员服务器列表 |
|
您希望 Infoblox 设备为指定域名转发查询的远程命名服务器信息。 默认值: |
|
提供服务器的IP地址 |
|
提供服务器的名称 |
|
确定设备是否仅向转发器发送查询,而不向其他内部或互联网根服务器发送查询。 选项
|
|
转发网格成员的名称(FQDN 格式) |
|
使用 c(forward_to) 选项时,如果将其设置为 选项
|
|
指定要管理的 NIOS 命名服务器组的名称。 |
|
包含连接详细信息的字典对象。 |
|
指定客户端证书文件,其中包含 x509 配置摘要,用于为与 NIOS 远程实例的安全连接增加额外的安全层。 值也可以使用 |
|
指定用于通过 REST 连接到 NIOS WAPI 远程实例的 DNS 主机名或地址 值也可以使用 |
|
在此处插入描述 默认值: |
|
在此处插入描述 默认值: |
|
在收到响应之前要等待的时间量 值也可以使用 默认值: |
|
指定私钥文件,用于与证书一起加密,以便与 NIOS 的远程实例连接。 值也可以使用 |
|
指定要返回的对象的最大数量,如果设置为负数,则当返回的对象数量超过设置值时,设备将返回错误。 值也可以使用 默认值: |
|
配置在连接声明可用之前尝试重试的次数 值也可以使用 默认值: |
|
指定用于验证与 NIOS 远程实例连接的密码。 值也可以使用 |
|
在此处插入描述 选项
|
|
配置用于验证与 NIOS 远程实例连接的用户名。 值也可以使用 |
|
布尔值,用于启用或禁用验证 SSL 证书 值也可以使用 选项
|
|
指定要使用的 WAPI 版本 值也可以使用 在 Ansible 2.8 之前,默认 WAPI 版本为 1.4 默认值: |
|
配置NIOS服务器上对象实例的预期状态。当此值设置为 选项
|
备注
注意
此模块必须在本地运行,可以通过指定
connection: local
来实现。请阅读 :ref:`nios_guide`,以获取有关如何将 Infoblox 与 Ansible 一起使用的更详细信息。
示例
- name: create infoblox nameserver forwarding member group
infoblox.nios_modules.nios_nsgroup_forwardingmember:
name: my-forwardingmember-group
comment: "this is a forwarding member nameserver group"
forwarding_servers:
- name: member.localdomain
state: present
provider:
host: "{{ inventory_hostname_short }}"
username: admin
password: admin
connection: local
- name: create infoblox nameserver forwarding member group with external forwarders
infoblox.nios_modules.nios_nsgroup_forwardingmember:
name: my-forwardingmember-group
comment: "this is a forwarding member nameserver group with external forwarders"
forwarding_servers:
- name: member.localdomain
use_override_forwarders: true
forward_to:
- name: ns1
address: 192.168.10.1
state: present
provider:
host: "{{ inventory_hostname_short }}"
username: admin
password: admin
connection: local