.. _cisco.nxos.nxos_ntp_global_module:
**************************
cisco.nxos.nxos_ntp_global
**************************
**NTP Global resource module.**
Version added: 2.6.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module manages ntp configuration on devices running Cisco NX-OS.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
dictionary
|
|
A dict of ntp configuration.
|
|
access_group
dictionary
|
|
NTP access-group.
This option is unsupported on MDS switches.
|
|
|
match_all
boolean
|
|
Scan ACLs present in all ntp access groups.
|
|
|
peer
list
/ elements=dictionary
|
|
Access-group peer.
|
|
|
|
access_list
string
|
|
Name of access list.
|
|
|
query_only
list
/ elements=dictionary
|
|
Access-group query-only.
|
|
|
|
access_list
string
|
|
Name of access list.
|
|
|
serve
list
/ elements=dictionary
|
|
Access-group serve.
|
|
|
|
access_list
string
|
|
Name of access list.
|
|
|
serve_only
list
/ elements=dictionary
|
|
Access-group serve-only.
|
|
|
|
access_list
string
|
|
Name of access list.
|
|
allow
dictionary
|
|
Enable/Disable the packets.
|
|
|
control
dictionary
|
|
Control mode packets.
|
|
|
|
rate_limit
integer
|
|
Rate-limit delay.
|
|
|
private
boolean
|
|
Enable/Disable Private mode packets.
|
|
authenticate
boolean
|
|
Enable/Disable authentication.
|
|
authentication_keys
list
/ elements=dictionary
|
|
NTP authentication key.
|
|
|
encryption
integer
|
|
0 for Clear text
7 for Encrypted
|
|
|
id
integer
|
|
Authentication key number (range 1-65535).
|
|
|
key
string
|
|
Authentication key.
|
|
logging
boolean
|
|
Enable/Disable logging of NTPD Events.
|
|
master
dictionary
|
|
Act as NTP master clock.
This option is unsupported on MDS switches.
|
|
|
stratum
integer
|
|
Stratum number.
|
|
passive
boolean
|
|
NTP passive command.
This option is unsupported on MDS switches.
|
|
peers
list
/ elements=dictionary
|
|
NTP Peers.
|
|
|
key_id
integer
|
|
Keyid to be used while communicating to this server.
|
|
|
maxpoll
integer
|
|
Maximum interval to poll a peer.
Poll interval in secs to a power of 2.
|
|
|
minpoll
integer
|
|
Minimum interval to poll a peer.
Poll interval in secs to a power of 2.
|
|
|
peer
string
|
|
Hostname/IP address of the NTP Peer.
|
|
|
prefer
boolean
|
|
Preferred Server.
|
|
|
vrf
string
|
|
Display per-VRF information.
This option is unsupported on MDS switches.
aliases: use_vrf
|
|
servers
list
/ elements=dictionary
|
|
NTP servers.
|
|
|
key_id
integer
|
|
Keyid to be used while communicating to this server.
|
|
|
maxpoll
integer
|
|
Maximum interval to poll a peer.
Poll interval in secs to a power of 2.
|
|
|
minpoll
integer
|
|
Minimum interval to poll a peer.
Poll interval in secs to a power of 2.
|
|
|
prefer
boolean
|
|
Preferred Server.
|
|
|
server
string
|
|
Hostname/IP address of the NTP Peer.
|
|
|
vrf
string
|
|
Display per-VRF information.
This option is not applicable for MDS switches.
aliases: use_vrf
|
|
source
string
|
|
Source of NTP packets.
This option is unsupported on MDS switches.
|
|
source_interface
string
|
|
Source interface sending NTP packets.
|
|
trusted_keys
list
/ elements=dictionary
|
|
NTP trusted-key number.
|
|
|
key_id
integer
|
|
Trusted-Key number.
|
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the NX-OS device by executing the command show running-config ntp.
The state parsed reads the configuration from running_config option and transforms it into Ansible structured data as per the resource module's argspec and the value is then returned in the parsed key within the result.
|
|
state
string
|
Choices:
merged ←
- replaced
- overridden
- deleted
- parsed
- gathered
- rendered
|
The state the configuration should be left in.
The states replaced and overridden have identical behaviour for this module.
Please refer to examples for more details.
|