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