Re: [ansible-project] Loop range format quick question

2020-05-08 Thread Dave Zarei
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

[ansible-project] Loop range format quick question

2020-05-05 Thread Dave Zarei
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

[ansible-project] Check for existing ACI contract between 2 IPs using Ansbile

2020-04-22 Thread Dave Zarei
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

[ansible-project] Re: using vars_prompt in a vars file being addressed by include_vars

2020-04-11 Thread Dave Zarei
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

[ansible-project] using vars_prompt in a vars file being addressed by include_vars

2020-04-09 Thread Dave Zarei
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