Hi:

I'm trying to act on the cartesian product of a fileglob and a sequence.

Is there a way to do this with with_nested?

I tried this:

  - cmd: cp {{ item[0] }} {{ item[0] }}.{{ item[1] }}
    with_nested:
      - with_fileglob:
        - /etc/*
      - with_sequence: start=0 end=10

But this produced an error.

I thought about creating lists, but registering for the results of "ls -1 
/etc/*" and "seq 0 10", then using these lists with with_nested, but that 
seems hacky.

Any suggestions?

Thanks,

Rob

-- 
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/f64b292f-4557-4f56-9cd7-0f2bee432cff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to