purestorage.flashblade.purefb_timeout 模块 – 配置 Pure Storage FlashBlade GUI 空闲超时
注意
此模块是 purestorage.flashblade 集合(版本 1.19.1)的一部分。
如果您正在使用 ansible
包,您可能已经安装了此集合。它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install purestorage.flashblade
。您需要满足其他要求才能使用此模块,请参阅 要求 了解详细信息。
要在 playbook 中使用它,请指定:purestorage.flashblade.purefb_timeout
。
purestorage.flashblade 1.6.0 中的新增功能
概要
配置 Pure Storage FlashBlade 的 GUI 空闲超时。
这不会影响现有的 GUI 会话。
要求
以下要求需要在执行此模块的主机上满足。
python >= 3.9
py-pure-client
purity_fb >= 1.12.2
netaddr
datetime
pytz
distro
pycountry
urllib3
参数
参数 |
注释 |
---|---|
具有管理员权限的用户的 FlashBlade API 令牌。 |
|
禁用不安全证书警告 选择
|
|
FlashBlade 管理 IP 地址或主机名。 |
|
设置或禁用 GUI 空闲超时 选择
|
|
空闲超时时间(分钟)。 默认值: |
注释
注意
此模块需要
purity_fb
Python 库如果 fb_url 和 api_token 参数没有直接传递给模块,则必须设置
PUREFB_URL
和PUREFB_API
环境变量
示例
- name: Set GUI idle timeout to 25 minutes
purestorage.flashblade.purefb_timeout:
timeout: 25
state: present
fb_url: 10.10.10.2
api_token: T-68618f31-0c9e-4e57-aa44-5306a2cf10e3
- name: Disable idle timeout
purestorage.flashblade.purefb_timeout:
state: absent
fb_url: 10.10.10.2
api_token: T-68618f31-0c9e-4e57-aa44-5306a2cf10e3