community.network.icx_system 模块 – 管理 Ruckus ICX 7000 系列交换机上的系统属性

注意

此模块是 community.network 集合 (版本 5.1.0) 的一部分。

如果您使用的是 ansible 包,则可能已安装此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list

要安装它,请使用:ansible-galaxy collection install community.network

要在剧本中使用它,请指定:community.network.icx_system

注意

community.network 集合已被弃用,并将从 Ansible 12 中移除。有关更多信息,请参阅 讨论主题

已弃用

在以下版本中移除:

6.0.0 版本

原因:

此集合及其中的所有内容均未维护且已弃用。

替代方案:

未知。

概要

  • 此模块提供对 Ruckus ICX 7000 系列交换机上节点系统属性的声明式管理。它提供了一个选项,用于配置主机系统参数或从设备活动配置中删除这些参数。

别名:network.icx.icx_system

参数

参数

注释

aaa_servers

列表 / 元素=字符串

配置 radius/tacacs 服务器

acct_port_num

字符串

配置计费 UDP 端口。默认值为 1813。

acct_type

字符串

计费端口的用途。

选项

  • "accounting-only"

  • "authentication-only"

  • "authorization-only"

  • "default"

auth_key

字符串

配置服务器的密钥

auth_key_type

列表 / 元素=字符串

在选项中指定的认证级别的列表

选项

  • "dot1x"

  • "mac-auth"

  • "web-auth"

auth_port_num

字符串

配置身份验证 UDP 端口。默认值为 1812。

auth_port_type

字符串

指定身份验证端口的类型

选项

  • "auth-port"

hostname

字符串

配置 RADIUS 服务器的主机名

type

字符串

指定服务器的类型

选项

  • "radius"

  • "tacacs"

check_running_config

布尔值

检查运行配置。这可以设置为环境变量。模块将使用环境变量值(默认为 True),除非通过将其指定为模块参数来覆盖它。

选项

  • false

  • true ← (默认)

domain_name

列表 / 元素=字符串

将远程设备上的 IP 域名配置为提供的值。值应采用点分名称形式,并将附加到主机名以创建完全限定域名。

列表 / 元素=字符串

提供要附加到主机名以进行名称解析的域名列表。此参数接受名称列表,并将与运行节点上的当前活动配置协调。

hostname

字符串

配置设备主机名参数。此选项采用 ASCII 字符串值。

name_servers

列表 / 元素=字符串

要用于执行名称解析查找的 DNS 命名服务器的 IP 地址列表。

state

字符串

设备当前活动配置中配置值的状。设置为 *present* 时,应在设备活动配置中配置这些值;设置为 *absent* 时,这些值不应在设备活动配置中。

选项

  • "present" ← (默认)

  • "absent"

备注

注意

示例

- name: Configure hostname and domain name
  community.network.icx_system:
    hostname: icx
    domain_search:
      - ansible.com
      - redhat.com
      - ruckus.com

- name: Configure radius server of type auth-port
  community.network.icx_system:
    aaa_servers:
      - type: radius
        hostname: radius-server
        auth_port_type: auth-port
        auth_port_num: 1821
        acct_port_num: 1321
        acct_type: accounting-only
        auth_key: abc
        auth_key_type:
          - dot1x
          - mac-auth

- name: Configure tacacs server
  community.network.icx_system:
    aaa_servers:
      - type: tacacs
        hostname: tacacs-server
        auth_port_type: auth-port
        auth_port_num: 1821
        acct_port_num: 1321
        acct_type: accounting-only
        auth_key: xyz

- name: Configure name servers
  community.network.icx_system:
    name_servers:
      - 8.8.8.8
      - 8.8.4.4

返回值

公共返回值已记录在 此处,以下是此模块特有的字段

描述

commands

列表 / 元素=字符串

要发送到设备的配置模式命令列表

返回值: 始终

示例: ["hostname icx", "ip domain name test.example.com", "radius-server host 172.16.10.12 auth-port 2083 acct-port 1850 default key abc dot1x mac-auth", "tacacs-server host 10.2.3.4 auth-port 4058 authorization-only key xyz"]

状态

  • 此模块将在6.0.0版本中移除。[已弃用]

  • 更多信息请参见 已弃用

作者

  • Ruckus Wireless (@Commscope)