Maybe something like this:

---
- hosts: REMOTEMACHINE
  tasks:
    - unarchive:
        src: /LOCAL/PATH/TO/optimizerappl-5.5.1-rel-12.tar
        dest: /var/tmp/
        copy: False
      delegate_to: localhost
    - copy:
        src: /var/tmp/optimizerappl.msdlca_5.5.1-rel-12_all.deb
        dest: /var/tmp/
    - apt:
        deb: /var/tmp/optimizerappl.msdlca_5.5.1-rel-12_all.deb

On Tue, Mar 31, 2015 at 7:00 AM,  <[email protected]> wrote:
> Hi Team,
>
>  Can you please help me out to extract a tar file locally which contains a
> .deb file and then need to extract the .deb file and then copy to
> destiny(remote machine).
>
>
> ansimanager@ip-10-157-85-102:/var/lib/awx/projects/optimizer_deployment/content$
> tar -tf optimizerappl-5.5.1-rel-12.tar
> optimizerappl.msdlca_5.5.1-rel-12_all.deb
>
>
>
> Many Thanks
> Thomas Xavier
>
>
> --
> 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/a088835f-a2ea-4c4c-a39f-9da815dddf88%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 [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/CAG9juEoFPJFS0Zsf8z6pv2AWT%3DKGx4GnanhCaGHMet_w8ACvGA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to