summaryrefslogtreecommitdiff
path: root/roles/installer/ubuntu/autoinstall/tasks/main.yml
blob: a7ea67bab3f25b22cc55c4487e7a86c811960179 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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"