Hello,

I have placed below tasks in a role. It works fine when executing the 
complete role, but when i run my playbook and I include a tag "-- tags 
copy_files", my registered "result_files" is not included.
What would be the best approach for this where I only use run my playbook 
with the copy_files tag?


  - name: Register - Copy files
    command: "find ./demo_deploy -type f ! -path './demo_deploy/ins/*'"
    register: result_files

  - name: Copy files
    command: cp {{ item }} /tmp/
    with_items:
     - "{{result_files.stdout_lines}}"
    tags:
      - copy_filesed

-- 
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/cc6c6805-23cf-4d98-a6da-9d513d614777%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to