Download Ubuntu ISO

This commit is contained in:
Khue Doan 2021-02-08 14:13:40 +07:00
parent fffa1dbaf5
commit 6eee51f65b
3 changed files with 12 additions and 0 deletions

5
Makefile Normal file
View File

@ -0,0 +1,5 @@
.POSIX:
build:
make -C metal
make -C platform

View File

@ -1,3 +1,5 @@
iso_url: "https://releases.ubuntu.com/20.04.2/ubuntu-20.04.2-live-server-amd64.iso"
subnet: "192.168.1.0" subnet: "192.168.1.0"
netmask: "255.255.255.0" netmask: "255.255.255.0"
gateway: "192.168.1.1" gateway: "192.168.1.1"

View File

@ -2,6 +2,11 @@
# community.general.docker_compose: # community.general.docker_compose:
# project_src: "{{ role_path }}/files/pxe-servers" # project_src: "{{ role_path }}/files/pxe-servers"
- name: Download ISO
get_url:
url: "{{ iso_url }}"
dest: "{{ role_path }}/files/images/"
- name: Render environment file - name: Render environment file
template: template:
src: "{{ role_path }}/files/.env.j2" src: "{{ role_path }}/files/.env.j2"