Thanks Stefan, used the following and it's working like you said:
loop: "{{range (0, myvariable | int +1) | list}}"
On Tuesday, May 5, 2020 at 8:53:49 AM UTC-4, Stefan Hornburg (Racke) wrote:
>
> On 5/5/20 2:36 PM, Dave Zarei wrote:
> > HI,
> >
> > quick qu
HI,
quick question about how to use a variable in loop range:
I got this:
loop: "{{range (0, 2+1) | list}}"
and this is what i want to use:
loop: "{{range (0, myvariable +1) | list}}"
where "myvaribale" contains number 2
but it comes back with an error when i run it, i also tried to put
Hi,
I'm trying to figure out a way to check for any existing contract between 2
IPs in ACI using Ansible before creating a contract, any aci_rest get
method?
Thanks,
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from
book.
>
> BR,
>
>
> El jueves, 9 de abril de 2020, 20:45:28 (UTC+2), Dave Zarei escribió:
>>
>> HI,
>>
>> Got a quick question, I'm trying to use include_vars in a main play which
>> addresses a vars file in which there is vars_prompt (i also have an
&g
HI,
Got a quick question, I'm trying to use include_vars in a main play which
addresses a vars file in which there is vars_prompt (i also have an
include_tasks in the same main play which uses the variables being
addressed by include_vars). when i run the main play there is no error, but
it