haught.apcos.apcos_dns (1.2.2) — module

Manage dns 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 UPS dns configuration on APC OS NMC systems.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Set dns name
  haught.apcos.apcos_dns:
    primarydns: "1.1.1.1"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Set two dns settings
  haught.apcos.apcos_dns:
    primarydns: "1.1.1.1"
    secondarydns: "4.4.4.4"

Inputs

    
hostname:
    description:
    - Set the host name
    type: str

domainname:
    description:
    - Set the domain name
    type: str

primaryserver:
    description:
    - Set the primary DNS server.
    type: str

domainnameipv6:
    description:
    - Set the domain name IPv6.
    type: str

overridemanual:
    description:
    - Override the manual DNS.
    type: bool

systemnamesync:
    description:
    - Synchronizes the system name and the hostname.
    type: bool

secondaryserver:
    description:
    - Set the secondary DNS server.
    type: str

Outputs

commands:
  description: The list of configuration mode commands to send to the device
  returned: always
  sample:
  - dns -n ups001
  type: list