--- - name: create autoinstall sub-directory file: path: "{{ ubuntu_autoinstall_tmpdir }}/autoinstall" state: directory - name: create empty meta-data file copy: content: "" dest: "{{ ubuntu_autoinstall_tmpdir }}/autoinstall/meta-data" - name: copy early-command script 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/user-data"