netapp.storagegrid.na_sg_grid_ntp module – NetApp StorageGRID manage external NTP servers for the grid.

Note

This module is part of the netapp.storagegrid collection (version 21.12.0).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install netapp.storagegrid.

To use it in a playbook, specify: netapp.storagegrid.na_sg_grid_ntp.

New in netapp.storagegrid 20.6.0

Synopsis

  • Update NTP server on NetApp StorageGRID.

Parameters

Parameter

Comments

api_url

string / required

The url to the StorageGRID Admin Node REST API.

auth_token

string / required

The authorization token for the API request

ntp_servers

list / elements=string / required

List of comma separated NTP server address.

passphrase

string / required

passphrase for GRID.

state

string

Whether the specified user should exist or not.

Choices:

  • "present" ← (default)

validate_certs

boolean

Should https certificates be validated?

Choices:

  • false

  • true ← (default)

Notes

Note

  • The modules prefixed with na_sg are built to manage NetApp StorageGRID.

Examples

- 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"

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

resp

list / elements=string

Returns information about the configured NTP servers.

Returned: success

Sample: ["10.0.0.1", "10.0.0.2", "10.0.0.3", "10.0.0.4"]

Authors

  • NetApp Ansible Team (@jkandati)