You were right Jordan.
I have to say, I really dislike the use of quotes here. It is really not
intuitive what data you are passing.
Thanks for everyone's help.
On Monday, 12 August 2019 08:11:29 UTC+1, Richard Payne wrote:
>
> I thought so, but will try again to confirm.
>
> On Friday, 9 Augu
I thought so, but will try again to confirm.
On Friday, 9 August 2019 21:03:03 UTC+1, Jordan Borean wrote:
>
> No you are not, the jinja2 block is evaluated before it’s passed to the
> module so the data will contain the array you are looking for. Did you try
> it out?
--
You received this mes
No you are not, the jinja2 block is evaluated before it’s passed to the module
so the data will contain the array you are looking for. Did you try it out?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and sto
On Thursday, 8 August 2019 09:55:58 UTC+1, Kai Stian Olstad wrote:
>
> On 08.08.2019 10:50, 'Richard Payne' via Ansible Project wrote:
> > Hi Kai
> >
> > This:
> > Port: {{ range(43000,43200) | list }}
> >
> > produces:
> > ERROR! Syntax Error while loading YAML.
> >found unacceptable
On 08.08.2019 10:50, 'Richard Payne' via Ansible Project wrote:
> Hi Kai
>
> This:
> Port: {{ range(43000,43200) | list }}
>
> produces:
> ERROR! Syntax Error while loading YAML.
>found unacceptable key (unhashable type: 'AnsibleMapping')
> The offending line appears to be:
>
>
> HostN
Hi Kai
This:
Port: {{ range(43000,43200) | list }}
produces:
ERROR! Syntax Error while loading YAML.
found unacceptable key (unhashable type: 'AnsibleMapping')
The offending line appears to be:
HostName: "+"
Port: {{ range(43000,43200) | list }}
^ here
We could be wrong, bu
Ahh sorry I thought you only wanted those numbers. The suggestion above should
work.
--
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 ansible-project+unsubscr
On 08.08.2019 09:19, 'Richard Payne' via Ansible Project wrote:
> Thanks Jordan, but a explicitly written list is not really practical when
> you have a range 100 or 1000 in length.
{{ range(46000,46100) | list }}
--
Kai Stian Olstad
--
You received this message because you are subscribed to
Thanks Jordan, but a explicitly written list is not really practical when
you have a range 100 or 1000 in length.
On Wednesday, 7 August 2019 21:21:48 UTC+1, Jordan Borean wrote:
>
> You should be using a YAML list or a Python list like the below;
>
> Port:
> - 46000
> - 46100
>
> # or
>
> Port:
You should be using a YAML list or a Python list like the below;
Port:
- 46000
- 46100
# or
Port: [46000, 46100]
Thanks
Jordan
--
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
10 matches
Mail list logo