# Ansible Tower error of Deploying Dynatrace Oneagent on Windows Host | "unexpected rc from install C:\\Temp\\dynatrace-oneagent-windows-latest.exe: see rc, stdout and stderr for more details", "rc": 1602, "reboot\_required"

**URL:** <https://forum.ansible.com/t/ansible-tower-error-of-deploying-dynatrace-oneagent-on-windows-host-unexpected-rc-from-install-c-temp-dynatrace-oneagent-windows-latest-exe-see-rc-stdout-and-stderr-for-more-details-rc-1602-reboot-required/32636>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [April 8, 2020, 1:33pm UTC](https://forum.ansible.com/t/ansible-tower-error-of-deploying-dynatrace-oneagent-on-windows-host-unexpected-rc-from-install-c-temp-dynatrace-oneagent-windows-latest-exe-see-rc-stdout-and-stderr-for-more-details-rc-1602-reboot-required/32636 "2020-04-08T13:33:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Jusay](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@Richard\_Jusay](https://forum.ansible.com/u/Richard_Jusay)\
**Post date:** [April 8, 2020, 1:33pm UTC](https://forum.ansible.com/t/ansible-tower-error-of-deploying-dynatrace-oneagent-on-windows-host-unexpected-rc-from-install-c-temp-dynatrace-oneagent-windows-latest-exe-see-rc-stdout-and-stderr-for-more-details-rc-1602-reboot-required/32636/1 "2020-04-08T13:33:15Z")

</div>

Hi,

I’m installing Dynatrace oneagent on Windows server, successfully downloaded the installer but it wont continue the installation because of this error.

**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

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [April 8, 2020, 1:35pm UTC](https://forum.ansible.com/t/ansible-tower-error-of-deploying-dynatrace-oneagent-on-windows-host-unexpected-rc-from-install-c-temp-dynatrace-oneagent-windows-latest-exe-see-rc-stdout-and-stderr-for-more-details-rc-1602-reboot-required/32636/2 "2020-04-08T13:35:18Z")

</div>

> 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  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke

---

<div class="post-metadata">

**Author:** ![Pradeep\_Reddy](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@Pradeep\_Reddy](https://forum.ansible.com/u/Pradeep_Reddy)\
**Post date:** [July 27, 2023, 3:35pm UTC](https://forum.ansible.com/t/ansible-tower-error-of-deploying-dynatrace-oneagent-on-windows-host-unexpected-rc-from-install-c-temp-dynatrace-oneagent-windows-latest-exe-see-rc-stdout-and-stderr-for-more-details-rc-1602-reboot-required/32636/3 "2023-07-27T15:35:17Z")

</div>

Hello All,

I am looking for dynatrace oneagent ansible playbook for windows installation. Could someone please share the steps for installation?

Thanks,  
Pradeep
