summaryrefslogtreecommitdiff
path: root/roles/installer/ubuntu/autoinstall/tasks/main.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-07-01 01:21:02 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-07-01 01:21:02 +0200
commit8ef2f52313f5affce1614c9eee27d6466fc6f46d (patch)
tree56e34c4bb3aa83f7779182a6762e15202d410d77 /roles/installer/ubuntu/autoinstall/tasks/main.yml
parentfix reusability of subiquity based usb installer (diff)
ubuntu usb installer can now install multiple hosts from same drive
Diffstat (limited to 'roles/installer/ubuntu/autoinstall/tasks/main.yml')
-rw-r--r--roles/installer/ubuntu/autoinstall/tasks/main.yml7
1 files changed, 4 insertions, 3 deletions
diff --git a/roles/installer/ubuntu/autoinstall/tasks/main.yml b/roles/installer/ubuntu/autoinstall/tasks/main.yml
index 4a3034d0..a7ea67ba 100644
--- a/roles/installer/ubuntu/autoinstall/tasks/main.yml
+++ b/roles/installer/ubuntu/autoinstall/tasks/main.yml
@@ -1,15 +1,16 @@
---
- name: create autoinstall sub-directory
file:
- path: "{{ ubuntu_autoinstall_tmpdir }}/autoinstall"
+ path: "{{ ubuntu_autoinstall_tmpdir }}/autoinstall/{{ inventory_hostname }}"
state: directory
- name: create empty meta-data file
copy:
content: ""
- dest: "{{ ubuntu_autoinstall_tmpdir }}/autoinstall/meta-data"
+ 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"
@@ -17,4 +18,4 @@
- name: generate autoinstall.yml as user-data
template:
src: autoinstall.yml.j2
- dest: "{{ ubuntu_autoinstall_tmpdir }}/autoinstall/user-data"
+ dest: "{{ ubuntu_autoinstall_tmpdir }}/autoinstall/{{ inventory_hostname }}/user-data"