summaryrefslogtreecommitdiff
path: root/roles/installer/ubuntu/autoinstall/tasks/main.yml
blob: 4a3034d025ba9d9f8a3b1e09c365de0da80ba343 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
- name: create autoinstall sub-directory
  file:
    path: "{{ ubuntu_autoinstall_tmpdir }}/autoinstall"
    state: directory

- name: create empty meta-data file
  copy:
    content: ""
    dest: "{{ ubuntu_autoinstall_tmpdir }}/autoinstall/meta-data"

- name: copy early-command script
  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/user-data"