mellanox.onyx.onyx_ntp module – Manage NTP general configurations and ntp keys configurations on Mellanox ONYX network devices
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
.
New in mellanox.onyx 0.2.0
Synopsis
This module provides declarative management of NTP & NTP Keys on Mellanox ONYX network devices.
Parameters
Parameter |
Comments |
---|---|
State of the NTP authentication configuration. Choices:
|
|
List of ntp authentication keys |
|
encryption type used to configure ntp authentication key. Choices:
|
|
Configures ntp key-id, range 1-65534 |
|
password used for ntp authentication key. |
|
Used to decide if you want to delete given ntp key or not Choices:
|
|
State of the NTP configuration. Choices:
|
|
List of ntp trusted keys |
Examples
- name: Configure NTP
onyx_ntp:
state: enabled
authenticate_state: enabled
ntp_authentication_keys:
- auth_key_id: 1
auth_key_encrypt_type: md5
auth_key_password: 12345
auth_key_state: absent
trusted_keys: 1,2,3
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: |