You should be able to achieve this using the following syntax:

"{{ (loopvar|int)**2 }}"


On Fri, Aug 22, 2014 at 7:49 AM, Imran Khan <[email protected]>
wrote:

>     - name: Do some mathematics divide multiply
>       #insert logic here
>       register: my_content  # save logic in register
>       with_sequence: count={{loopvar}}  #I need a loop sequence here
>
> can I need to set the stride to 2^2. Is that possible?
>
>  --
> 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/1895b841-4ff0-4f12-89d9-9c3c657fd9ea%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/1895b841-4ff0-4f12-89d9-9c3c657fd9ea%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Matt Martz
[email protected]
http://sivel.net/

-- 
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/CAD8N0v9QmcSmZfHfpBEaJQmOmdijPfpNHRNsmAOkjQz9ExWEEA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to