Fix pxe docker compose

This commit is contained in:
Khue Doan 2021-02-12 20:39:22 +07:00
parent c216624398
commit 316ce29ccb
2 changed files with 6 additions and 4 deletions

View File

@ -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"

View File

@ -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