Advice taken, replaced hypens in group names with underscores, everything 
works now (after I also fixed the "$item" in the delegate_to to be the 
correct "{{ item }}" syntax)

Thanks for the quick help!


On Tuesday, September 11, 2018 at 4:21:00 PM UTC-4, Matt Martz wrote:
>
> The problem is that you have used a hyphen in your group name.  That does 
> not meet the requirements for a valid python name, so you cannot use dot 
> syntax.
>
> In your current form, jinja2, thinks that you want to perform subtraction 
> between variables at `groups.slurm` and `prictlr[0]`.
>
> You will need to instead use bracket syntax:
>
> with_items: "{{ groups['slurm-prictlr'][0] }}"
>
> With that being said, I'd really recommend renaming your groups to use 
> underscores, instead of hyphens.
>

-- 
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/6e4bdb8b-0234-42c6-a95c-7f3aed7fad9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to