- hosts: localhost connection: local tasks: - template: src: ops-server/telegraf.conf.j2 dest: templates/ops-server/telegraf.conf vars: - devices: - name: SW oppe ip: 192.168.10.10 type: switch - name: SW nede ip: 192.168.10.11 type: switch - name: SW cloud ip: 192.168.10.12 type: switch - name: Over stue ip: 192.168.10.20 type: ap - name: Over kjøkken ip: 192.168.10.21 type: ap - name: Kontor ip: 192.168.10.22 type: ap - name: Garasje ip: 192.168.10.23 type: ap