mKeRix / ansible-playbooks

Ansible Playbooks for my other projects like room-assistant.
MIT License
17 stars 17 forks source link

Unable to set instanceName #11

Closed mariwing closed 3 years ago

mariwing commented 3 years ago

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?

mariwing commented 3 years ago

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

mKeRix commented 3 years ago

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