mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-05 21:11:52 +07:00
Fix pxe docker compose
This commit is contained in:
parent
c216624398
commit
316ce29ccb
@ -1,4 +1,4 @@
|
||||
iso_url: "https://releases.ubuntu.com/20.04.2/ubuntu-20.04.2-live-server-amd64.iso"
|
||||
iso_url: "https://mirrors.nhanhoa.com/centos/8.3.2011/isos/x86_64/CentOS-8.3.2011-x86_64-dvd1.iso"
|
||||
|
||||
subnet: "192.168.1.0"
|
||||
netmask: "255.255.255.0"
|
||||
|
@ -10,11 +10,11 @@
|
||||
- name: Download ISO
|
||||
get_url:
|
||||
url: "{{ iso_url }}"
|
||||
dest: "{{ role_path }}/build/images/ubuntu.iso"
|
||||
dest: "{{ role_path }}/build/images/centos8.iso"
|
||||
|
||||
- name: Mount the ISO
|
||||
mount:
|
||||
src: "{{ role_path }}/build/images/ubuntu.iso"
|
||||
src: "{{ role_path }}/build/images/centos8.iso"
|
||||
path: "{{ role_path }}/build/mnt"
|
||||
fstype: iso9660
|
||||
opts: loop,ro
|
||||
@ -49,4 +49,6 @@
|
||||
|
||||
- name: Start PXE server
|
||||
docker_compose:
|
||||
project_src: "{{ role_path }}/files/pxe-servers"
|
||||
project_src: "{{ role_path }}/build"
|
||||
build: yes
|
||||
delegate_to: localhost
|
||||
|
Loading…
Reference in New Issue
Block a user