.. _cisco.ios.ios_ntp_global_module:
************************
cisco.ios.ios_ntp_global
************************
**Resource module to configure NTP.**
Version added: 2.5.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module provides declarative management of ntp on Cisco IOS devices.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
dictionary
|
|
A dictionary of ntp options
|
|
access_group
dictionary
|
|
Control NTP access
|
|
|
peer
list
/ elements=dictionary
|
|
Provide full access
|
|
|
|
access_list
string
|
|
name or number of access list
|
|
|
|
ipv4
boolean
|
|
ipv4 access lists (Default not idempotent)
|
|
|
|
ipv6
boolean
|
|
ipv6 access lists (Default not idempotent)
|
|
|
|
kod
boolean
|
|
Send a Kiss-o-Death packet for failing peers
|
|
|
query_only
list
/ elements=dictionary
|
|
Allow only control queries
|
|
|
|
access_list
string
|
|
name or number of access list
|
|
|
|
ipv4
boolean
|
|
ipv4 access lists (Default not idempotent)
|
|
|
|
ipv6
boolean
|
|
ipv6 access lists (Default not idempotent)
|
|
|
|
kod
boolean
|
|
Send a Kiss-o-Death packet for failing peers
|
|
|
serve
list
/ elements=dictionary
|
|
Provide server and query access
|
|
|
|
access_list
string
|
|
name or number of access list
|
|
|
|
ipv4
boolean
|
|
ipv4 access lists (Default not idempotent)
|
|
|
|
ipv6
boolean
|
|
ipv6 access lists (Default not idempotent)
|
|
|
|
kod
boolean
|
|
Send a Kiss-o-Death packet for failing peers
|
|
|
serve_only
list
/ elements=dictionary
|
|
Provide only server access
|
|
|
|
access_list
string
|
|
name or number of access list
|
|
|
|
ipv4
boolean
|
|
ipv4 access lists (Default not idempotent)
|
|
|
|
ipv6
boolean
|
|
ipv6 access lists (Default not idempotent)
|
|
|
|
kod
boolean
|
|
Send a Kiss-o-Death packet for failing peers
|
|
allow
dictionary
|
|
Allow processing of packets
|
|
|
control
dictionary
|
|
Allow processing control mode packets
|
|
|
|
rate_limit
integer
|
|
Rate-limit delay.
|
|
|
private
boolean
|
|
Allow processing private mode packets
|
|
authenticate
boolean
|
|
Authenticate time sources
|
|
authentication_keys
list
/ elements=dictionary
|
|
Authentication key for trusted time sources
|
|
|
algorithm
string
|
|
Authentication type
|
|
|
encryption
integer
|
|
Authentication key encryption type
|
|
|
id
integer
|
|
Key number
|
|
|
key
string
|
|
Password
|
|
broadcast_delay
integer
|
|
Estimated round-trip delay
|
|
clock_period
integer
|
|
Length of hardware clock tick, clock period in 2^-32 seconds
|
|
logging
boolean
|
|
Enable NTP message logging
|
|
master
dictionary
|
|
Act as NTP master clock
|
|
|
enabled
boolean
|
|
Enable master clock
|
|
|
stratum
integer
|
|
Stratum number
|
|
max_associations
integer
|
|
Set maximum number of associations
|
|
max_distance
integer
|
|
Maximum Distance for synchronization
|
|
min_distance
integer
|
|
Minimum distance to consider for clockhop
|
|
orphan
integer
|
|
Threshold Stratum for orphan mode
|
|
panic_update
boolean
|
|
Reject time updates > panic threshold (default 1000Sec)
|
|
passive
boolean
|
|
NTP passive mode
|
|
peers
list
/ elements=dictionary
|
|
Configure NTP peer
|
|
|
burst
boolean
|
|
Send a burst when peer is reachable (Default)
|
|
|
iburst
boolean
|
|
Send a burst when peer is unreachable (Default)
|
|
|
key_id
integer
|
|
Configure peer authentication key
aliases: key
|
|
|
maxpoll
integer
|
|
Maximum poll interval Poll value in Log2
|
|
|
minpoll
integer
|
|
Minimum poll interval Poll value in Log2
|
|
|
normal_sync
boolean
|
|
Disable rapid sync at startup
|
|
|
peer
string
|
|
ipv4/ipv6 address or hostname of the peer
|
|
|
prefer
boolean
|
|
Prefer this peer when possible
|
|
|
source
string
|
|
Interface for source address
|
|
|
use_ipv4
boolean
|
|
Use IP for DNS resolution
|
|
|
use_ipv6
boolean
|
|
Use IPv6 for DNS resolution
|
|
|
version
integer
|
|
Configure NTP version
|
|
|
vrf
string
|
|
VPN Routing/Forwarding Information
|
|
servers
list
/ elements=dictionary
|
|
Configure NTP server
|
|
|
burst
boolean
|
|
Send a burst when peer is reachable (Default)
|
|
|
iburst
boolean
|
|
Send a burst when peer is unreachable (Default)
|
|
|
key_id
integer
|
|
Configure peer authentication key
aliases: key
|
|
|
maxpoll
integer
|
|
Maximum poll interval Poll value in Log2
|
|
|
minpoll
integer
|
|
Minimum poll interval Poll value in Log2
|
|
|
normal_sync
boolean
|
|
Disable rapid sync at startup
|
|
|
prefer
boolean
|
|
Prefer this peer when possible
|
|
|
server
string
|
|
ipv4/ipv6 address or hostname of the server
|
|
|
source
string
|
|
Interface for source address
|
|
|
use_ipv4
boolean
|
|
Use IP for DNS resolution
|
|
|
use_ipv6
boolean
|
|
Use IPv6 for DNS resolution
|
|
|
version
integer
|
|
Configure NTP version
|
|
|
vrf
string
|
|
VPN Routing/Forwarding Information
|
|
source
string
|
|
Configure interface for source address
|
|
trusted_keys
list
/ elements=dictionary
|
|
Key numbers for trusted time sources
|
|
|
range_end
integer
|
|
End key number
|
|
|
range_start
integer
|
|
Start / key number
|
|
update_calendar
boolean
|
|
Periodically update calendar with NTP time
|
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the IOS device by executing the command show running-config | section ^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
- rendered
- gathered
- parsed
|
The state the configuration should be left in
The states rendered, gathered and parsed does not perform any change on the device.
The state rendered will transform the configuration in config option to platform specific CLI commands which will be returned in the rendered key within the result. For state rendered active connection to remote host is not required.
The states replaced and overridden have identical behaviour for this module.
The state gathered will fetch the running configuration from device and transform it into structured data in the format as per the resource module argspec and the value is returned in the gathered key within the result.
The state parsed reads the configuration from running_config option and transforms it into JSON format as per the resource module parameters and the value is returned in the parsed key within the result. The value of running_config option should be the same format as the output of command show running-config | section ^ntp executed on device. For state parsed active connection to remote host is not required.
|