ansible.builtin.nxos_ntp_options (v2.5.10) — module

Manages NTP options.

| "added in version" 2.2 of ansible.builtin"

Authors: Jason Edelman (@jedelman8)

preview | supported by network

Install Ansible via pip

Install with pip install ansible==2.5.10

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
- 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.
    required: false

master:
    choices:
    - 'true'
    - 'false'
    default: null
    description:
    - Sets whether the device is an authoritative NTP server.
    required: false

logging:
    choices:
    - 'true'
    - 'false'
    default: null
    description:
    - Sets whether NTP logging is enabled on the device.
    required: false

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

Outputs

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