--- - name: Create Inventory Folder local_action: module: file path: "{{ doku_path }}" state: directory mode: 0755 run_once: True - name: Write Wiki Page local_action: module: template src: host.j2 dest: "{{ doku_path }}/{{ inventory_hostname }}.txt" - name: Write Index Page local_action: module: template src: start.j2 dest: "{{ doku_path }}/start.txt" run_once: True