cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ansible collection installation in Windows host just skipping tasks.

AguinagaCSI
Helper

Ih guys. How can I install oneagent on Windows hosts? I do all setup to make WimRM work but I can get tasks skipping only. 

 

PLAY [Download OneAgent installer in specific version to a custom directory with additional OneAgent install parameters. Both linux_other and linux_arm have different user specified by platform args parameter.] ***

TASK [Gathering Facts] ********************************************************************************************************************
ok: [192.168.129.229]

TASK [oneagent : Load variables based on OS] **********************************************************************************************
ok: [192.168.129.229]

TASK [oneagent : Load messages] ***********************************************************************************************************
ok: [192.168.129.229]

TASK [oneagent : Check passed parameters] *************************************************************************************************
included: /home/alan/Dynatrace/dynatrace-oneagent-ansible-1.1.0.20211006-104525/local_installer/roles/oneagent/tasks/params/params.yml for 192.168.129.229

TASK [oneagent : Validate URL and token] **************************************************************************************************
skipping: [192.168.129.229]

TASK [oneagent : Check local installer] ***************************************************************************************************
skipping: [192.168.129.229]

TASK [oneagent : Validate availability of local installer] ********************************************************************************
skipping: [192.168.129.229]

TASK [oneagent : Validate installer architecture] *****************************************************************************************
skipping: [192.168.129.229]

TASK [oneagent : include_tasks] ***********************************************************************************************************
included: /home/alan/Dynatrace/dynatrace-oneagent-ansible-1.1.0.20211006-104525/local_installer/roles/oneagent/tasks/params/params-windows.yml for 192.168.129.229

TASK [oneagent : Validate if download directory is available] *****************************************************************************
ok: [192.168.129.229]

TASK [oneagent : Validate OneAgent installer version parameter] ***************************************************************************
skipping: [192.168.129.229]

TASK [oneagent : Validate installation arguments] *****************************************************************************************
skipping: [192.168.129.229]

TASK [oneagent : Provide OneAgent installer] **********************************************************************************************
skipping: [192.168.129.229]

TASK [oneagent : Gather installers info] **************************************************************************************************
skipping: [192.168.129.229]

TASK [oneagent : Apply OneAgent configuration] ********************************************************************************************
included: /home/alan/Dynatrace/dynatrace-oneagent-ansible-1.1.0.20211006-104525/local_installer/roles/oneagent/tasks/config/config.yml for 192.168.129.229

TASK [oneagent : Combine configuration parameters] ****************************************************************************************
ok: [192.168.129.229]

TASK [oneagent : Apply OneAgent configuration] ********************************************************************************************
included: /home/alan/Dynatrace/dynatrace-oneagent-ansible-1.1.0.20211006-104525/local_installer/roles/oneagent/tasks/config/config-windows.yml for 192.168.129.229

TASK [oneagent : Check if OneAgent is installed] ******************************************************************************************
ok: [192.168.129.229]

TASK [oneagent : Applying OneAgent configuration] *****************************************************************************************
skipping: [192.168.129.229]

TASK [oneagent : Verify configuration result] *********************************************************************************************
skipping: [192.168.129.229]

TASK [oneagent : Install OneAgent] ********************************************************************************************************
skipping: [192.168.129.229]

TASK [oneagent : Cleanup] *****************************************************************************************************************
skipping: [192.168.129.229]

TASK [oneagent : Uninstall OneAgent] ******************************************************************************************************
skipping: [192.168.129.229]

PLAY RECAP ********************************************************************************************************************************
192.168.129.229 : ok=10 changed=0 unreachable=0 failed=0 skipped=13 rescued=0 ignored=0

 

 

2 REPLIES 2

AguinagaCSI
Helper

Here my playbooks and more: 

 

---


- name: Basic OneAgent installation using a local installer. Hosts placed
in unix hosts groups have its local installer paths defined in
inventory file. Main node communicates with Windows hosts over SSH.
hosts: windows,unix
vars:
dynatrace_environment_url: https:// xxx.live.dynatrace.com
dynatrace_paas_token: xxx
collections:
- dynatrace.oneagent
tasks:

- name: Create directory structure
win_file:
path: C:\temp
state: directory

- name: Copy agent.exe to windows targets
win_copy:
src: /home/alan/Dynatrace/dynatrace-oneagent-ansible-1.1.0.20211006-104525/local_installer/Dynatrace-OneAgent-Windows-1.231.237.exe
dest: c:\temp\

 
- import_role:
name: oneagent
 
 
Inventory
---
all:
vars:
# oneagent_local_installer: ./Dynatrace-OneAgent-Windows-1.231.237.exe
oneagent_install_args:
- USER=ALAN
- INSTALL_PATH=C:\\temp
ansible_connection: winrm
ansible_shell_type: cmd
ansible_winrm_server_cert_validation: ignore
ansible_user: ALAN
ansible_password: "xxx"
deprecation_warnings: False
ansible_port: 5986
ansible_winrm_scheme: https
ansible_winrm_kerberos_delegation: true

children:
windows:
hosts:
192.168.129.229:

ansible.cfg
 
[defaults]
#become = True
#become_method = sudo
#ask_pass = False
#host_key_checking = False
deprecation_warnings = False
#gathering = explicit
verbosity = 1
default_debug = True
#remote_user = root
#ansible_ssh_extra_args='-o StrictHostKeyChecking=no'
#private_key_file = /home/alan/.ssh/id_rsa
#remote_tmp= /tmp/.ansible-${USER}/tmp
 

 

AguinagaCSI
Helper

My playbook: 

 

---
- name: Download OneAgent installer in specific version to a custom
directory with additional OneAgent install parameters. Both linux_other
and linux_arm have different user specified by platform args parameter.
hosts: windows
collections:
- dynatrace.oneagent
 
# credentials.yml file contains oneagent_environment_url and
# oneagent_paas_token variables that needs to be stored securely
vars_files:
- credentials.yml
vars:
oneagent_installer_script_url: https: //xxxxx
oneagent_download_dir: C:\\temp
# oneagent_version: 1.199.247.20200714-111723
oneagent_install_args:
- INSTALL_PATH=C:\\temp
# - GROUP=example_group
# - --set-host-name=new_host_name
# - --set-host-tag=new_tag
# - --set-host-property=property1
# - --set-host-property=other=property
tasks:
- import_role:
name: oneagent
 
 
my inventory: 
 
 
---
all:
vars:
# oneagent_local_installer: ./Dynatrace-OneAgent-Windows-1.231.237.exe
oneagent_install_args:
- USER=ALAN
- INSTALL_PATH=C:\\temp
ansible_connection: winrm
ansible_shell_type: cmd
ansible_winrm_server_cert_validation: ignore
ansible_user: ALAN
ansible_password: "xxx"
deprecation_warnings: False
ansible_port: 5986
ansible_winrm_scheme: https
ansible_winrm_kerberos_delegation: true

children:
windows:
hosts:
192.168.129.229:

 
 

Featured Posts