Re: [ansible-project] Re: win_dsc UrlAcl and passing int[]

2019-08-20 Thread 'Richard Payne' via Ansible Project
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

Re: [ansible-project] Re: win_dsc UrlAcl and passing int[]

2019-08-12 Thread 'Richard Payne' via Ansible Project
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

Re: [ansible-project] Re: win_dsc UrlAcl and passing int[]

2019-08-09 Thread Jordan Borean
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

Re: [ansible-project] Re: win_dsc UrlAcl and passing int[]

2019-08-09 Thread 'Richard Payne' via Ansible Project
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

Re: [ansible-project] Re: win_dsc UrlAcl and passing int[]

2019-08-08 Thread Kai Stian Olstad
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

Re: [ansible-project] Re: win_dsc UrlAcl and passing int[]

2019-08-08 Thread 'Richard Payne' via Ansible Project
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

Re: [ansible-project] Re: win_dsc UrlAcl and passing int[]

2019-08-08 Thread Jordan Borean
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

Re: [ansible-project] Re: win_dsc UrlAcl and passing int[]

2019-08-08 Thread Kai Stian Olstad
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

[ansible-project] Re: win_dsc UrlAcl and passing int[]

2019-08-08 Thread 'Richard Payne' via Ansible Project
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:

[ansible-project] Re: win_dsc UrlAcl and passing int[]

2019-08-07 Thread Jordan Borean
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