- name: Generate Bird configuration hosts: tnet connection: local gather_facts: False tasks: - file: path: files/{{ inventory_hostname }} state: directory - template: src: bird-tnet.conf.j2 dest: files/{{ inventory_hostname }}/bird-tnet.conf