Create user on host if is in specific group

Looks like you may want:

when: users_group[0] in item.groups

You may also just wish to change this:

users_group: admin

Hello Michael

Thanks for your answer.

users_group:

  • admin

I did it this way, because for some hosts (like development) the development guys needs to login to. So it would be like this:
users_group:

  • admin
  • development

Bit I will check this out!

Kind regards,
Werner

Michael,

It works perfect! Thanks!