---
- name: Set hosts
  lineinfile: dest=/etc/hosts line="{{ hosts_ip_address }} {{ item }}" unsafe_writes=yes
  with_items:
    - "static.vm.openconext.org"
    - "metadata.vm.openconext.org"
    - "serviceregistry.vm.openconext.org"
    - "engine.vm.openconext.org"
    - "profile.vm.openconext.org"
    - "mujina-sp.vm.openconext.org"
    - "mujina-idp.vm.openconext.org"
    - "authz.vm.openconext.org"
    - "authz-admin.vm.openconext.org"
    - "voot.vm.openconext.org"
    - "authz-playground.vm.openconext.org"
    - "lb.vm.openconext.org"
    - "apps.vm.openconext.org"
    - "db.vm.openconext.org"
    - "pdp.vm.openconext.org"
    - "engine-api.vm.openconext.org"
    - "aa.vm.openconext.org"
    - "link.vm.openconext.org"
    - "oidc.vm.openconext.org"
    - "teams.vm.openconext.org"
    - "manage.vm.openconext.org"

---
- name: Set hosts
  lineinfile: dest=/etc/hosts line="{{ hosts_ip_address }} {{ item }}" unsafe_writes=yes
  with_items:
    - "static.vm.openconext.org"
    - "metadata.vm.openconext.org"
    - "serviceregistry.vm.openconext.org"
    - "engine.vm.openconext.org"
    - "profile.vm.openconext.org"
    - "mujina-sp.vm.openconext.org"
    - "mujina-idp.vm.openconext.org"
    - "authz.vm.openconext.org"
    - "authz-admin.vm.openconext.org"
    - "voot.vm.openconext.org"
    - "authz-playground.vm.openconext.org"
    - "lb.vm.openconext.org"
    - "apps.vm.openconext.org"
    - "db.vm.openconext.org"
    - "pdp.vm.openconext.org"
    - "engine-api.vm.openconext.org"
    - "aa.vm.openconext.org"
    - "link.vm.openconext.org"
    - "oidc.vm.openconext.org"
    - "teams.vm.openconext.org"
    - "manage.vm.openconext.org"

- name: Set logstash in hostsfile
  lineinfile: dest=/etc/hosts line="192.168.66.99 {{ item }}" unsafe_writes=yes
  with_items:
    - "logstash.vm.openconext.org"

Add hosts entry needed for logstash on the vm
Add hosts entry needed for logstash on the vm
