Mount ISO

This commit is contained in:
Khue Doan 2021-02-12 20:12:42 +07:00
parent 07bf9a767b
commit 75e075d2f6

View File

@ -10,7 +10,16 @@
- name: Download ISO
get_url:
url: "{{ iso_url }}"
dest: "{{ role_path }}/build/images/"
dest: "{{ role_path }}/build/images/ubuntu.iso"
- name: Mount the ISO
mount:
src: "{{ role_path }}/build/images/ubuntu.iso"
path: "{{ role_path }}/build/mnt"
fstype: iso9660
opts: loop,ro
state: mounted
become: yes
- name: Copy configs
copy:
@ -39,5 +48,5 @@
loop: "{{ groups['metal'] }}"
- name: Start PXE server
community.general.docker_compose:
docker_compose:
project_src: "{{ role_path }}/files/pxe-servers"