mirror of
https://github.com/khuedoan/homelab.git
synced 2025-02-06 09:08:26 +07:00
Mount ISO
This commit is contained in:
parent
07bf9a767b
commit
75e075d2f6
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user