summaryrefslogtreecommitdiff
path: root/roles/installer/ubuntu/autoinstall/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/installer/ubuntu/autoinstall/tasks')
-rw-r--r--roles/installer/ubuntu/autoinstall/tasks/main.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/roles/installer/ubuntu/autoinstall/tasks/main.yml b/roles/installer/ubuntu/autoinstall/tasks/main.yml
new file mode 100644
index 00000000..a7ea67ba
--- /dev/null
+++ b/roles/installer/ubuntu/autoinstall/tasks/main.yml
@@ -0,0 +1,21 @@
+---
+- 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"