- name: Generate Wireguard keys
  hosts: tnet
  connection: local
  gather_facts: False
  tasks:
#    - debug: 
#        msg: |
#          ansible_host={{ ansible_host }}
#          inventory_hostname={{ inventory_hostname }}
    - name: Create Wireguard keys
      loop: "{{ tnet_wg|default([])|dict2items }}"
      include_tasks: wg-keys-genkey.yml