appdynamics.agent_installer.download (21.10.2) — module

Ansible module to download AppDynamics agent installer.

| "added in version" 21.10.0 of appdynamics.agent_installer"

Authors: Vitaly Zhuravlev (@v-zhuravlev)

Install collection

Install with ansible-galaxy collection install appdynamics.agent_installer:==21.10.2


Add to requirements.yml

  collections:
    - name: appdynamics.agent_installer
      version: 21.10.2

Description

Gets download command in order to download required agent installer.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.

- name: Download agent installer
  appdynamics.agent_installer.download:
    controller_url: https://company1.saas.appdynamics.com
    client_id: user@company1
    client_secret: somesecret
    dest: /opt/appdynamics/agent_installer_store
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Download agent installer (java agent only)
  appdynamics.agent_installer.download:
    controller_url: https://company1.saas.appdynamics.com
    client_id: user@company1
    client_secret: somesecret
    install_machine: False
    dest: /opt/appdynamics/agent_installer_stagestore
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get download command without downloading
  appdynamics.agent_installer.download:
    controller_url: https://company1.saas.appdynamics.com
    client_id: user@company1
    client_secret: somesecret
    dest: /opt/appdynamics/agent_installer_stagestore
  check_mode: yes

Inputs

    
dest:
    description: Provide path where to store downloaded artifacts
    required: true
    type: path

force:
    default: false
    description: Forces agent redownload
    required: false
    type: bool

api_token:
    description: Token for controller auth.
    required: false
    type: str

client_id:
    description: Client ID (i.e. <username>@<account>)
    required: false
    type: str

api_prefix:
    default: /zero
    description: Zero Agent API prefix (i.e. /zero)
    required: false
    type: str

install_java:
    default: true
    description: Set to true to download Java agent
    required: false
    type: bool

java_version:
    default: latest
    description: Java agent version to use. Defaults to using the latest.
    required: false
    type: str

zero_version:
    default: latest
    description: Zero agent version to use. Defaults to using the latest.
    required: false
    type: str

client_secret:
    description: Client secret
    required: false
    type: str

infra_version:
    default: latest
    description: Infra agent version to use. Defaults to using the latest.
    required: false
    type: str

install_infra:
    default: false
    description: Set to true to download infra agent
    required: false
    type: bool

controller_url:
    description: Appdynamics Controller API URL (i.e. https://<your controller>)
    required: true
    type: str

install_machine:
    default: true
    description: Set to true to download machine agent
    required: false
    type: bool

machine_version:
    default: latest
    description: Machine agent version to use. Defaults to using the latest.
    required: false
    type: str

Outputs

checksum:
  description: Checksum of download command. Can be used to make decisions if agent
    upgrade is required.
  returned: success
  sample: a4e12de7078bc61e77c1b0d567a61064
  type: str
checksum_changed:
  description: Indicates if command checksum is changed
  returned: success
  sample: true
  type: bool
dest_subdir:
  description: Sub directory with installation files.
  returned: success
  sample: /tmp/appdynamics-agent-installer/a4e12de7078bc61e77c1b0d567a61064
  type: str
download:
  description: Shell download command
  returned: success
  type: str