Good morning everyone, this is my hosts file:

web-servers:
  hosts:
    web01:
      ansible_host: x.x.x.x
     web02:
       ansible_host: x.x.x.x

backend-servers:
   hosts:
     balance1:
       ansible_host: x.x.x.x
     balance2:
       ansible_host: x.x.x.x
     balance3:
       ansible_host: x.x.x.x

what is the correct way to call backend group servers? I tried this but it
doesn’t work:

when: inventory_hostname in groups["backend-servers"]

Regards,

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAGUDtnkya%3DwVKxwWxs9uxzxw9ti2LPvvaq2mDrz9mFnkY65SYw%40mail.gmail.com.

Reply via email to