i am using win_find to find set of files and registering the result using 
register, how can i access it in the next task, i used debug to print out 
the results from the variable, but when i use it in next task its not 
working

i am picking item.filename and item.path after seeing the debug msg..is 
this correct?

  -  name: Find Exe
     win_find:
      paths: "{{location}}/files"
      patterns: '*.exe'
      recurse: True
     register: exepath
  -  debug: 
       msg: "{{exepath}}"
  -  name: Install Services
     win_service:
      name: "{{item.filename}}" 
      path: "{{item.path}}"      
     with_items:
       - "{{exepath}}"

-- 
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/fd488885-b572-424f-b31d-4330cf6b518b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to