# vim: set ft=ansible
---
- name: generate hosts entries
  lineinfile:
    dest: /etc/hosts
    regexp: "{{ item.name | replace('.', '\\.') }}"
    line: "{{ item.net | ipaddr('1') | ipaddr('address') }} {{ item.name }}"
  with_items: vpn.static_clients

Add a role to deploy /etc/hosts for vpn names
Add a role to deploy /etc/hosts for vpn names

Signed-off-by: Jan Losinski <577c4104c61edf9f052c616c0c23e67bef4a9955@wh2.tu-dresden.de>
