arista.eos.eos_banner 模块 – 在 Arista EOS 设备上管理多行 banner
注意
此模块是 arista.eos 集合 (版本 10.0.1) 的一部分。
如果您使用的是 ansible
包,则可能已安装此集合。它不包含在 ansible-core
中。要检查它是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用: ansible-galaxy collection install arista.eos
。
要在 playbook 中使用它,请指定: arista.eos.eos_banner
。
arista.eos 1.0.0 中的新增功能
概要
这将在运行 Arista EOS 的远程设备上配置登录和 motd banner。它允许 playbook 添加或从活动运行配置中删除 banner 文本。
参数
参数 |
注释 |
---|---|
指定应在远程设备上配置哪个 banner。 选项
|
|
指定当前设备活动运行配置中是否存在该配置。 选项
|
|
应存在于远程设备运行配置中的 banner 文本。此参数接受多行字符串。需要 state=present。 |
备注
注意
针对 Arista EOS 4.24.6F 测试
示例
- name: configure the login banner
arista.eos.eos_banner:
banner: login
text: |
this is my login banner
that contains a multiline
string
state: present
- name: remove the motd banner
arista.eos.eos_banner:
banner: motd
state: absent
返回值
常用返回值已在 此处 记录,以下是此模块特有的字段
键 |
描述 |
---|---|
要发送到设备的配置模式命令列表 返回:始终 示例: |
|
用于加载配置的 EOS 配置会话名称 返回:如有更改 示例: |
作者
Peter Sprygada (@privateip)