community.network.dladm_etherstub 模块 – 在 Solaris/illumos 系统上管理 etherstubs。
注意
此模块是 community.network 集合 (版本 5.1.0) 的一部分。
如果您使用的是 ansible
软件包,则可能已安装此集合。它不包含在 ansible-core
中。要检查它是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用: ansible-galaxy collection install community.network
。
要在剧本中使用它,请指定: community.network.dladm_etherstub
。
注意
community.network 集合已被弃用,并将从 Ansible 12 中移除。请参阅 讨论主题 获取更多信息。
已弃用
- 在以下版本中移除:
版本 6.0.0
- 原因:
此集合及其中的所有内容均未维护且已弃用。
- 替代方案:
未知。
概要
在 Solaris/illumos 系统上创建或删除 etherstubs。
别名:network.illumos.dladm_etherstub
参数
参数 |
注释 |
---|---|
Etherstub 名称。 |
|
创建或删除 Solaris/illumos etherstub。 选项
|
|
指定 etherstub 是临时的。临时 etherstubs 不会在重新引导后持久存在。 选项
|
示例
- name: Create 'stub0' etherstub
community.network.dladm_etherstub:
name: stub0
state: present
- name: Remove 'stub0 etherstub
community.network.dladm_etherstub:
name: stub0
state: absent
返回值
常见的返回值在此处有说明 这里,以下是此模块特有的字段
键 |
描述 |
---|---|
etherstub 名称 返回值:始终 示例: |
|
目标的状态 返回值:始终 示例: |
|
etherstub 的持久性 返回值:始终 示例: |
状态
此模块将在 6.0.0 版本中移除。[已弃用]
更多信息请参见 已弃用。