Deprecated

Removed in None

i

Reason:Updated module released with more functionality. | Alternative:nxos_ntp_global

cisco.nxos.nxos_ntp_options (6.0.3) — module

Manages NTP options.

| "added in version" 1.0.0 of cisco.nxos"

Authors: Jason Edelman (@jedelman8)

Install collection

Install with ansible-galaxy collection install cisco.nxos:==6.0.3


Add to requirements.yml

  collections:
    - name: cisco.nxos
      version: 6.0.3

Description

Manages NTP options, e.g. authoritative server and logging.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Basic NTP options configuration
- cisco.nxos.nxos_ntp_options:
    master: true
    stratum: 12
    logging: false
    host: '{{ inventory_hostname }}'
    username: '{{ un }}'
    password: '{{ pwd }}'

Inputs

    
state:
    choices:
    - present
    - absent
    default: present
    description:
    - Manage the state of the resource.
    type: str

master:
    description:
    - Sets whether the device is an authoritative NTP server.
    type: bool

logging:
    description:
    - Sets whether NTP logging is enabled on the device.
    type: bool

stratum:
    description:
    - If C(master=true), an optional stratum can be supplied (1-15). The device default
      is 8.
    type: str

Outputs

updates:
  description: command sent to the device
  returned: always
  sample:
  - no ntp logging
  - ntp master 12
  type: list