Replacing the existing Jar files with available Jar files and currently with same name available no action is taking

9 views
Skip to first unread message

chandrasekhar Mallishetty

unread,
May 1, 2019, 4:22:26 PM5/1/19
to Ansible Project
Dear All.

Need your help we are in the process of Automating the cognos analytics servers from Linux env with ansible code .

Requirement : we have two Jar files named  local_policy.jar and US_export_policy.jar in our current installation directory  ../ibm/jre/lib/security/ and we need to replace the new local_policy.jar and US_export_policy.jar and we are writing the code as below .

Ansible code: 
 

  - name: Put Oracle drivers in cognos directory
    get_url: >
      url={{ artifactory_url }}/libs-ibm-lic-local/com/oracle/ojdbc7/12.1.0.2.0/ojdbc7-12.1.0.2.0.jar
      dest={{ cognos_dir }}/drivers/ojdbc7-12.1.0.2.0.jar
      owner='{{ cognos_user }}'
      group='{{ cognos_group }}'
      mode=0755
    become: yes

  - name: Put US export policy file in cognos directory
    get_url: >
     url={{ artifactory_url }}/libs-ibm-local/com/ibm/jce/US_export_policy/2013-02-27/US_export_policy-2013-02-27.jar
     dest={{ cognos_dir }}/jre/lib/security/US_export_policy.jar
     owner='{{ cognos_user }}'
     group='{{ cognos_group }}'
     mode=0755
    become: yes


The above code is not taking any code or copying the new policy files  since the  { cognos_dir }}/jre/lib/security/ has that files and if we change the name to US_export_policy_1.jar we can see the file new file US_export_policy_1.jar

we modified the above code by adding force:Yes not sure if this works or not

name: Put local policy file in cognos directory
    get_url: >
     url={{ artifactory_url }}/libs-ibm-local/com/ibm/jce/local_policy/2013-02-27/local_policy-2013-02-27.jar
     dest={{ cognos_dir }}/jre/lib/security/local_policy.jar
     owner='{{ cognos_user }}'
     group='{{ cognos_group }}'
     mode=0755
     force: yes
    become: yes

Can any one suggest an exact approch to move furture 

Thanks
M.chandra




chandrasekhar Mallishetty

unread,
May 1, 2019, 9:33:13 PM5/1/19
to Ansible Project

James Cassell

unread,
May 1, 2019, 10:04:58 PM5/1/19
to Ansible List
Please stop the spam. Your message came thru the first time. Also, please don't spam individual members of the list with the same question you sent to the list.

Thanks.


R,
James Cassell
> --
> 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.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/1278b89a-c60f-4fcd-9917-87a843d420a2%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

chandrasekhar Mallishetty

unread,
May 1, 2019, 11:32:56 PM5/1/19
to ansible...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages