Re: [ansible-project] Ansible Replacing the existing Jar files with new Jar files with same file name is not performing any action

2019-05-01 Thread chandrasekhar Mallishetty
Thanks for info...

On Thu, May 2, 2019 at 7:34 AM James Cassell 
wrote:

> 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
>
>
> On Wed, May 1, 2019, at 9:33 PM, chandrasekhar Mallishetty wrote:
> >
> >
> > 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 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
> >
> 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.
>
> --
> 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
> https://groups.google.com/d/msgid/ansible-project/1556762687.1833972.1669113152.575BBA83%40webmail.messagingengine.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 
https://groups.google.com/d/msgid/ansible-project/CA%2BBDj747F%3DTOUA_ntmeN_rJjqy1NieViF9kq%2B_MS_d-x4pKjiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible Replacing the existing Jar files with new Jar files with same file name is not performing any action

2019-05-01 Thread James Cassell
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


On Wed, May 1, 2019, at 9:33 PM, chandrasekhar Mallishetty wrote:
> 
> 
> 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 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 
> 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.

-- 
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 
https://groups.google.com/d/msgid/ansible-project/1556762687.1833972.1669113152.575BBA83%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.