community.network.icx_banner 模块 – 管理 Ruckus ICX 7000 系列交换机上的多行横幅
注意
此模块是 community.network 集合(版本 5.1.0)的一部分。
如果您正在使用 ansible 包,您可能已经安装了此集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install community.network。
要在 playbook 中使用它,请指定:community.network.icx_banner。
注意
community.network 集合已被弃用,并将从 Ansible 12 中删除。有关更多信息,请参阅讨论线程。
已弃用
- 在以下版本中移除:
- 版本 6.0.0 
- 原因:
- 此集合及其中的所有内容均未维护且已弃用。 
- 替代方案:
- 未知。 
概要
- 这将在远程 Ruckus ICX 7000 系列交换机上配置登录和 motd 横幅。它允许 playbook 从活动的运行配置中添加或删除横幅文本。 
别名: network.icx.icx_banner
参数
| 参数 | 注释 | 
|---|---|
| 指定应在远程设备上配置哪个横幅。 选项 
 | |
| 检查运行配置。这可以设置为环境变量。模块将使用环境变量值(默认值:True),除非通过将其指定为模块参数来覆盖它。 选项 
 | |
| 指定 motd 配置是否应接受 require-enter-key 默认值为 false。 选项 
 | |
| 指定配置是否存在于当前设备的活动运行配置中。 选项 
 | |
| 应存在于远程设备运行配置中的横幅文本。此参数接受多行字符串,没有空行。 | 
备注
注意
- 已针对 ICX 10.1 进行测试 
示例
- name: Configure the motd banner
  community.network.icx_banner:
    banner: motd
    text: |
        this is my motd banner
        that contains a multiline
        string
    state: present
- name: Remove the motd banner
  community.network.icx_banner:
    banner: motd
    state: absent
- name: Configure require-enter-key for motd
  community.network.icx_banner:
    banner: motd
    enterkey: true
- name: Remove require-enter-key for motd
  community.network.icx_banner:
    banner: motd
    enterkey: false
返回值
常见返回值记录在此处,以下是此模块独有的字段
| 键 | 描述 | 
|---|---|
| 要发送到设备的配置模式命令列表 返回: 始终 示例:  | 
状态
- 此模块将在版本 6.0.0 中删除。[已弃用] 
- 有关更多信息,请参阅已弃用。 
作者
- Ruckus Wireless (@Commscope) 
