On 12/8/20 3:09 PM, Manoj Chander wrote:
> Im trying to read a file line by line and  pass it to a  shell module 
> Is this completely wrong or i just have to find a way to make the wildcard 
> and string  to match .
> 
> 
> - name: remove older files
>   shell: ls "*{{item}}.jar*"
>   with_lines: cat file11/branches.txt
> 

Why don't you remove the files immediately with the file module?

Shell module shall be last resort.

Regards
        Racke

> 
> 
> 
> 
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/115ee17b-d943-4f2c-8ff5-9c8c7c5adb0dn%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/115ee17b-d943-4f2c-8ff5-9c8c7c5adb0dn%40googlegroups.com?utm_medium=email&utm_source=footer>.


-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/da0ad027-7009-df31-921d-1cc152908547%40linuxia.de.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to