--- - name: create autoinstall sub-directory file: path: "{{ ubuntu_autoinstall_tmpdir }}/autoinstall/{{ inventory_hostname }}" state: directory - name: create empty meta-data file copy: content: "" dest: "{{ ubuntu_autoinstall_tmpdir }}/autoinstall/{{ inventory_hostname }}/meta-data" - name: copy early-command script run_once: yes copy: src: early-command.py dest: "{{ ubuntu_autoinstall_tmpdir }}/autoinstall/early-command.py" - name: generate autoinstall.yml as user-data template: src: autoinstall.yml.j2 dest: "{{ ubuntu_autoinstall_tmpdir }}/autoinstall/{{ inventory_hostname }}/user-data"