On 4/8/20 3:33 PM, Richard Jusay wrote:
> Hi,
>
> I'm installing Dynatrace oneagent on Windows server, successfully downloaded the installer but it wont continue the
> installation because of this error.
Hello Richard,
please reach out to RedHat Support, this list is only for Ansible and not for Tower nor AWX.
Regards
Racke
>
> *Ansible Tower*
> Play: dynatrace oneagent install on windows
> Task: install:execute oneagent install file
> Module: win_package
>
> {
> "stderr_lines": [],
> "_ansible_no_log": false,
> "stdout": "",
> "changed": false,
> "reboot_required": false,
> "stderr": "",
> "rc": 1602,
> "msg": "unexpected rc from install C:\Temp\dynatrace-oneagent-windows-latest.exe: see rc, stdout and stderr for more
> details",
> "stdout_lines": []
> }
>
> *Exact Error:*
> TASK [install: execute oneagent install file] **********************************
> fatal: [10.250.8.179]: FAILED! => {"changed": false, "msg": "unexpected rc from install
> C:\Temp\dynatrace-oneagent-windows-latest.exe: see rc, stdout and stderr for more details", "rc": 1602,
> "reboot_required": false, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
>
>
>
> *Playbook:*
>
>
> dynatrace oneagent install on windows
>
>
> hosts_group -> inventory group of hosts to execute playbook on
>
>
> dt_api_endpoint -> dynatrace environment api endpoint (include trailing /)
>
>
> dt_api_token -> dynatrace api install token
>
>
> dt_host_group: -> dynatrace host group name
>
>
> dt_app_log_content_access: -> flag to enable or disable log analytics on host (0 or 1)
>
>
> dt_infra_only: -> flag to set cloud infrastructure monitoring mode on host (0 or 1)
>
>
> {65E3C889-BF02-4A22-9E22-5DCA88789582} v1.183.109 - live
>
>
> {73CFAADA-499D-4B5F-A7D4-9687DDBDCAF5} v1.183.151 - practice
>
> ------------------------------------------------------------------------------------------------------------------------
>
> *
>
>
> *hosts: "{{ hosts_group }}"
> vars:
> * dt_product_id: '{65E3C889-BF02-4A22-9E22-5DCA88789582}'
> name: "dynatrace oneagent install on windows"
> tasks:
>
> |name: "validate ansible tower execution on windows" win_stat: path: C:\Temp register: temp_dir |
>
> o name: "check if oneagent is already installed via windows service registry key"
> win_reg_stat:
> path: HKLM:\SYSTEM\CurrentControlSet\Services\Dynatrace OneAgent
> name: DisplayName
> register: installed
> o name: "download oneagent install file"
> win_get_url:
> url: "{{ dt_api_endpoint }}deployment/installer/agent/windows/default/latest?Api-Token={{ dt_api_token
> }}&arch=x86&flavor=default"
> dest: C:\Temp\dynatrace-oneagent-windows-latest.exe
> o name: "install: execute oneagent install file"
> win_package:
> product_id: "{{ dt_product_id }}"
> path: C:\Temp\dynatrace-oneagent-windows-latest.exe
> arguments:
> + HOST_GROUP="{{ dt_host_group }}"
> + APP_LOG_CONTENT_ACCESS="{{ dt_app_log_content_access }}"
> + INFRA_ONLY="{{ dt_infra_only }}"
> state: present
> when: installed.exists == False
> o name: "update: validate existing oneagent product id exists"
> win_reg_stat:
> path: "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{{ dt_product_id }}"
> name: DisplayName
> register: uninstall
> when: installed.exists == True
> o name: "update: uninstall existing oneagent package"
> win_package:
> product_id: "{{ dt_product_id }}"
> state: absent
> when: installed.exists == True and uninstall.exists == True
> o name: "update: execute oneagent install file"
> win_package:
> path: C:\Temp\dynatrace-oneagent-windows-latest.exe
> product_id: "{{ dt_product_id }}"
> arguments:
> + HOST_GROUP="{{ dt_host_group }}"
> + APP_LOG_CONTENT_ACCESS="{{ dt_app_log_content_access }}"
> + INFRA_ONLY="{{ dt_infra_only }}"
> state: present
> when: installed.exists == True and uninstall.exists == True
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
>
ansible-proje...@googlegroups.com <mailto:
ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/ansible-project/085b82df-bd65-406d-bb22-0efbd5bb3ec7%40googlegroups.com
> <
https://groups.google.com/d/msgid/ansible-project/085b82df-bd65-406d-bb22-0efbd5bb3ec7%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.