diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..a4be981c --- /dev/null +++ b/Makefile @@ -0,0 +1,5 @@ +.POSIX: + +build: + make -C metal + make -C platform diff --git a/metal/group_vars/all.yml b/metal/group_vars/all.yml index 51f69130..35d4cd04 100644 --- a/metal/group_vars/all.yml +++ b/metal/group_vars/all.yml @@ -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" netmask: "255.255.255.0" gateway: "192.168.1.1" diff --git a/metal/roles/pxe-server/tasks/main.yml b/metal/roles/pxe-server/tasks/main.yml index 92da77bc..06d7beec 100644 --- a/metal/roles/pxe-server/tasks/main.yml +++ b/metal/roles/pxe-server/tasks/main.yml @@ -2,6 +2,11 @@ # community.general.docker_compose: # project_src: "{{ role_path }}/files/pxe-servers" +- name: Download ISO + get_url: + url: "{{ iso_url }}" + dest: "{{ role_path }}/files/images/" + - name: Render environment file template: src: "{{ role_path }}/files/.env.j2"