- hosts: all

  become: yes



    - name: create an empty folders

      import_tasks: /etc/ansible/foldercreation.yml

    - name: Copy rpm file to server


         src: "{{ item }}"

         dest: /home/user/ansible/rpmpackages/


        - /home/user/ansible/rpmpackages/*

    - name: copy the dynatrace file from home to root

      shell: sudo mv 

      shell: sudo chmod -R 755 

      shell: sudo chown -R user 

    - name: install dynatrace


        command: /opt/SecureSpan/JDK/bin/java -jar 
/compuware/dt/dynatrace-agent- -installDir /compuware/dt/

           The product will be installed to /compuware/dt/dynatrace-6.1.0. 
Do you want to install to this directory? \(Y/N\): 'Y'

for dynatarce installation I am getting below error , what could  be the 

TASK [install dynatrace] 
task path: /etc/ansible/installrpm.yml:28
changed: [server] => {"changed": true, "cmd": "/opt/SecureSpan/JDK/bin/java 
-jar /compuware/dt/dynatrace-agent- -installDir 
/compuware/dt/", "delta": "0:00:00.183363", "end": "2018-02-19 
13:33:46.355043", "rc": 0, "start": "2018-02-19 13:33:46.171680", "stdout": 
"Invalid argument given!\r\n use <installer> -h to list all the available 
arguments", "stdout_lines": ["Invalid argument given!", " use <installer> 
-h to list all the available arguments"]}
META: ran handlers
META: ran handlers

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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to