mellanox.onyx.onyx_ntp_servers_peers module – Configures NTP peers and servers parameters
Note
This module is part of the mellanox.onyx collection (version 1.0.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 mellanox.onyx
.
To use it in a playbook, specify: mellanox.onyx.onyx_ntp_servers_peers
.
New in mellanox.onyx 0.2.0
Synopsis
This module provides declarative management of NTP peers and servers configuration on Mellanox ONYX network devices.
Parameters
Parameter |
Comments |
---|---|
Sets system clock once from a remote server using NTP. |
|
List of ntp peers. |
|
Disables/Enables ntp peer state Choices:
|
|
Configures ntp peer name or ip. |
|
Used to configure the key-id for the ntp peer |
|
Indicates if the ntp peer exists or should be deleted Choices:
|
|
version number for the ntp peer Choices:
|
|
List of ntp servers. |
|
Disables/Enables ntp server Choices:
|
|
Configures ntp server name or ip. |
|
Used to configure the key-id for the ntp server |
|
Indicates if the ntp peer exists or should be deleted. Choices:
|
|
Disables/Enables the trusted state for the ntp server. Choices:
|
|
version number for the ntp server Choices:
|
Examples
- name: Configure NTP peers and servers
onyx_ntp_peers_servers:
peer:
- ip_or_name: 1.1.1.1
enabled: yes
version: 4
key_id: 6
state: present
server:
- ip_or_name: 2.2.2.2
enabled: true
version: 3
key_id: 8
trusted_enable: no
state: present
ntpdate: 192.168.10.10
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The list of configuration mode commands to send to the device Returned: always. Sample: |