haught.apcos.apcos_ntp (1.2.2) — module

Manage ntp configuration on APC OS devices.

Authors: Matt Haught (@haught)

Install collection

Install with ansible-galaxy collection install haught.apcos:==1.2.2


Add to requirements.yml

  collections:
    - name: haught.apcos
      version: 1.2.2

Description

This module provides declarative management of APC ntp configuration on APC UPS NMC systems.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Set ntp name
  haught.apcos.apcos_ntp:
    primaryip: "10.1.1.1"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Set two ntp settings
  haught.apcos.apcos_ntp:
    enable: True
    primaryip: "10.1.1.1"
    secondaryip: "10.4.4.4"

Inputs

    
enable:
    description:
    - Enable ntp on device.
    type: bool

primaryserver:
    description:
    - Primary ntp server ip.
    type: str

overridemanual:
    description:
    - Override the manual time settings.
    type: bool

secondaryserver:
    description:
    - Secondary ntp server ip.
    type: str

Outputs

commands:
  description: The list of configuration mode commands to send to the device
  returned: always
  sample:
  - ntp -a ntplocal
  type: list