netapp.storagegrid.na_sg_grid_ntp 模块 – NetApp StorageGRID 管理网格的外部 NTP 服务器。
注意
此模块是 netapp.storagegrid 集合 (版本 21.13.0) 的一部分。
如果您正在使用 ansible 包,则可能已经安装了此集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install netapp.storagegrid。
要在 playbook 中使用它,请指定:netapp.storagegrid.na_sg_grid_ntp。
netapp.storagegrid 20.6.0 中的新增功能
概要
- 在 NetApp StorageGRID 上更新 NTP 服务器。 
参数
| 参数 | 注释 | 
|---|---|
| StorageGRID 管理节点 REST API 的 URL。 | |
| API 请求的授权令牌 | |
| 以逗号分隔的 NTP 服务器地址列表。 | |
| GRID 的密码。 | |
| 指定的 user 是否应该存在。 选择 
 | |
| 是否应验证 https 证书? 选择 
 | 
注释
注意
- 前缀为 - na_sg的模块用于管理 NetApp StorageGRID。
示例
- name: update NTP servers
  netapp.storagegrid.na_sg_grid_ntp:
    api_url: "https://<storagegrid-endpoint-url>"
    auth_token: "storagegrid-auth-token"
    validate_certs: false
    state: present
    passphrase: "{{ grid_pass }}"
    ntp_servers: "x.x.x.x,xx.x.xx.x"
返回值
通用返回值记录在 此处,以下是此模块特有的字段
| 键 | 描述 | 
|---|---|
| 返回有关配置的 NTP 服务器的信息。 已返回:成功 示例:  | 
