--- - name: Generate Butane config for CoreOS template: src: coreos_ignition.bu.j2 dest: "/tmp/{{ vm_name }}.bu" when: os_type == 'coreos' - name: Generate Butane config for Flatcar template: src: flatcar_ignition.bu.j2 dest: "/tmp/{{ vm_name }}.bu" when: os_type == 'flatcar' - name: Generate Butane config for microos template: src: microos_ignition.bu.j2 dest: "/tmp/{{ vm_name }}.bu" when: os_type == 'microos' - name: Compile Butane to Ignition JSON shell: | docker run --rm -i quay.io/coreos/butane --pretty --strict < /tmp/{{ vm_name }}.bu > {{ vm_images_dir }}/{{ vm_name }}.ign become: yes - name: Generate dummy meta-data file copy: content: "instance-id: {{ vm_name }}\nlocal-hostname: {{ vm_name }}\n" dest: "{{ vm_images_dir }}/{{ vm_name }}_meta-data"