On Thursday, May 2, 2019 at 1:52:26 AM UTC+5:30, chandrasekhar Mallishetty
wrote:
>
> 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
>
>
>
>
>
--
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 [email protected].
To post to this group, send email to [email protected].
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.