arraynetworks.array_modules.apv_device_ntp (1.0.3) — module

Manage NTP servers on APV device

| "added in version" 1.0.0 of arraynetworks.array_modules"

Authors: wangli2

Install collection

Install with ansible-galaxy collection install arraynetworks.array_modules:==1.0.3


Add to requirements.yml

  collections:
    - name: arraynetworks.array_modules
      version: 1.0.3

Description

Manage NTP (Network Time Protocol) servers on APV device

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Set NTP server
  array_device_ntp:
    ntp_servers:
      - 192.0.2.23
    provider:
      password: thisispassword
      server: 192.168.5.100
      user: restapi
  delegate_to: localhost

Inputs

    
state:
    choices:
    - absent
    - present
    default: present
    description:
    - The state of the NTP servers on the system. When C(present), guarantees the NTP
      servers are set on the system. When C(absent), removes the specified NTP servers
      from the device configuration.
    type: str

provider:
    description:
    - A dict object containing connection details.
    suboptions:
      password:
        description:
        - The password for the user account used to connect to the APV.
        - You may omit this option by setting the environment variable C(ARRAY_PASSWORD).
        required: true
        type: str
      protocol:
        choices:
        - http
        - https
        default: https
        description:
        - The protocol to connect to the remote device.
        - You may omit this option by setting the environment variable C(ARRAY_PROTOCOL).
        type: str
      server:
        description:
        - The APV host.
        - You may omit this option by setting the environment variable C(ARRAY_SERVER).
        required: true
        type: str
      server_port:
        default: 443
        description:
        - The APV server port.
        - You may omit this option by setting the environment variable C(ARRAY_SERVER_PORT).
        type: int
      user:
        description:
        - The username to connect to the APV with. This user must be in API level on the
          device.
        - You may omit this option by setting the environment variable C(ARRAY_USER).
        required: true
        type: str
    type: dict
    version_added: 1.0.0
    version_added_collection: arraynetworks.array_modules

ntp_servers:
    description:
    - A list of NTP servers to set on the device.
    elements: str
    type: list

Outputs

ntp_servers:
  description: The NTP servers that were set on the device.
  returned: changed
  sample:
  - 192.0.2.23
  - 192.0.2.42
  type: list