Fix setup for CoreOS
This commit is contained in:
@@ -1,12 +1,18 @@
|
||||
---
|
||||
- name: Generate Ignition config for CoreOS/Flatcar
|
||||
|
||||
- name: Generate Ignition configuration for CoreOS/Flatcar
|
||||
template:
|
||||
src: ignition.json.j2
|
||||
dest: "/tmp/{{ vm_name }}_ignition.json"
|
||||
when: os_type == "coreos" or os_type == "flatcar"
|
||||
dest: "{{ vm_images_dir }}/{{ vm_name }}.ign"
|
||||
when: os_type == 'coreos' or os_type == 'flatcar'
|
||||
|
||||
- name: Generate Cloud-init config for MicroOS
|
||||
- name: Generate Cloud-init configuration for MicroOS
|
||||
template:
|
||||
src: user-data.yaml.j2
|
||||
dest: "/tmp/{{ vm_name }}_user-data"
|
||||
when: os_type == "microos"
|
||||
dest: "{{ vm_images_dir }}/{{ vm_name }}_user-data"
|
||||
when: os_type == 'microos'
|
||||
|
||||
- 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"
|
||||
|
||||
Reference in New Issue
Block a user