community.general.vdirect_commit (0.1.1) — module

Commits pending configuration changes on Radware devices

Authors: Evgeny Fedoruk @ Radware LTD (@evgenyfedoruk)

preview | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

Commits pending configuration changes on one or more Radware devices via vDirect server.

For Alteon ADC device, apply, sync and save actions will be performed by default. Skipping of an action is possible by explicit parameter specifying.

For Alteon VX Container device, no sync operation will be performed since sync action is only relevant for Alteon ADC devices.

For DefensePro and AppWall devices, a bulk commit action will be performed. Explicit apply, sync and save actions specifying is not relevant.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: vdirect_commit
  vdirect_commit:
      vdirect_ip: 10.10.10.10
      vdirect_user: vDirect
      vdirect_password: radware
      devices: ['dev1', 'dev2']
      sync: no

Inputs

    
save:
    default: 'yes'
    description:
    - If C(no), save action will not be performed. Relevant for ADC devices only.
    type: bool

sync:
    default: 'yes'
    description:
    - If C(no), sync action will not be performed. Relevant for ADC devices only.
    type: bool

apply:
    default: 'yes'
    description:
    - If C(no), apply action will not be performed. Relevant for ADC devices only.
    type: bool

devices:
    description:
    - List of Radware Alteon device names for commit operations.
    required: true

vdirect_ip:
    description:
    - Primary vDirect server IP address, may be set as C(VDIRECT_IP) environment variable.
    required: true

vdirect_user:
    description:
    - vDirect server username, may be set as C(VDIRECT_USER) environment variable.
    required: true

vdirect_wait:
    default: 'yes'
    description:
    - Wait for async operation to complete, may be set as C(VDIRECT_WAIT) environment
      variable.
    type: bool

validate_certs:
    aliases:
    - vdirect_validate_certs
    default: 'yes'
    description:
    - If C(no), SSL certificates will not be validated,
    - may be set as C(VDIRECT_VALIDATE_CERTS) or C(VDIRECT_VERIFY) environment variable.
    - This should only set to C(no) used on personally controlled sites using self-signed
      certificates.
    type: bool

vdirect_timeout:
    default: 60
    description:
    - Amount of time to wait for async operation completion [seconds],
    - may be set as C(VDIRECT_TIMEOUT) environment variable.

vdirect_use_ssl:
    default: 'yes'
    description:
    - If C(no), an HTTP connection will be used instead of the default HTTPS connection,
    - may be set as C(VDIRECT_HTTPS) or C(VDIRECT_USE_SSL) environment variable.
    type: bool

vdirect_password:
    description:
    - vDirect server password, may be set as C(VDIRECT_PASSWORD) environment variable.
    required: true

vdirect_http_port:
    default: 2188
    description:
    - vDirect server HTTP port number, may be set as C(VDIRECT_HTTP_PORT) environment
      variable.

vdirect_https_port:
    default: 2189
    description:
    - vDirect server HTTPS port number, may be set as C(VDIRECT_HTTPS_PORT) environment
      variable.

vdirect_secondary_ip:
    description:
    - Secondary vDirect server IP address, may be set as C(VDIRECT_SECONDARY_IP) environment
      variable.

Outputs

result:
  description: Message detailing actions result
  returned: success
  sample: Requested actions were successfully performed on all devices.
  type: str