ansible.builtin.nxos_ntp_options (v2.3.3.0-1) — module

Manages NTP options.

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

Authors: Jason Edelman (@jedelman8)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.3.3.0.post1

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

changed:
  description: check to see if a change was made on the device
  returned: always
  sample: true
  type: boolean
end_state:
  description: k/v pairs of ntp options after module execution
  returned: always
  sample:
    logging: false
    master: true
    stratum: '11'
  type: dict
existing:
  description:
  - k/v pairs of existing ntp options
  returned: always
  sample:
    logging: true
    master: true
    stratum: '8'
  type: dict
proposed:
  description: k/v pairs of parameters passed into module
  returned: always
  sample:
    logging: false
    master: true
    stratum: '11'
  type: dict
updates:
  description: command sent to the device
  returned: always
  sample:
  - no ntp logging
  - ntp master 11
  type: list