Hello,

I did write an Ansible playbook to run on Linux, and now I would like to 
port it to run on Windows.

I would like to list the subdirectories to save it but because I don't know 
the full name, on Linux did write this play:
- name: Lister l installation existante
  shell: chdir=/{{ Directoryname }} ls -d SHR_4YOU-{{product}}-*
  register: shr4you_inst
  ignore_errors: True
  when: repertoire.stat.isdir is defined and repertoire.stat.isdir

How can I port this line on Windows ?   shell: chdir=/{{ Directoryname }} 
ls -d SHR_4YOU-{{product}}-*

Thanks for your help.
Regards,

-- 
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/e70541bb-f74a-43bf-bb2d-e7ff58c2ee1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to