mKeRix/ansible-playbooks

Unable to set instanceName

mariwing opened this issue · 2 comments

Hi, I have ansible running. Thanks for teaching me about that tool, seems great :-)

I am facing a issue; I want to set the instanceName. As soon as I include that in the config the playbook just hangs. This is the config that causes the hang:

all:
  hosts:
    'plantgw.ONONETT':
      room_assistant_config:
        global:
          instanceName: 'stue'
    'black-pearl.ONONETT':
      room_assistant_config:
        global:
          instanceName: 'soverom'

Just using this works great:

all:
  hosts:
    'plantgw.ONONETT':
    'black-pearl.ONONETT':

Any tips or hints on how to achieve what I want?

Turns out; it was the quotes around the host names that caused error when having parameters. Sorry for opening an issue and just close it again :-P

Glad you could solve it yourself! Not sure why ansible didn't like the quotes though, I think it's still valid yaml