mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-24 10:02:23 +07:00
style(metal): update some task names
This commit is contained in:
parent
be9817458c
commit
a706ca30c4
@ -1,35 +1,35 @@
|
||||
- name: Download ISO
|
||||
- name: Download boot image
|
||||
get_url:
|
||||
url: "{{ iso_url }}"
|
||||
dest: "{{ role_path }}/files/data/iso/{{ iso_url | basename }}"
|
||||
checksum: "{{ iso_checksum }}"
|
||||
register: iso
|
||||
|
||||
- name: Extract the ISO
|
||||
- name: Extract boot image
|
||||
command:
|
||||
cmd: "xorriso -osirrox on -indev {{ iso.dest }} -extract / {{ role_path }}/files/data/os"
|
||||
creates: "{{ role_path }}/files/data/os/.treeinfo"
|
||||
|
||||
- name: Render DHCP config
|
||||
- name: Generate DHCP config
|
||||
template:
|
||||
src: dhcpd.conf.j2
|
||||
dest: "{{ role_path }}/files/data/pxe-config/dhcpd.conf"
|
||||
mode: 0644
|
||||
|
||||
- name: Render GRUB config
|
||||
- name: Generate GRUB config
|
||||
template:
|
||||
src: grub.cfg.j2
|
||||
dest: "{{ role_path }}/files/data/pxe-config/grub.cfg"
|
||||
mode: 0644
|
||||
|
||||
- name: Render machine specific init config
|
||||
- name: Generate init config for each machine
|
||||
template:
|
||||
src: kickstart.ks.j2
|
||||
dest: "{{ role_path }}/files/data/init-config/{{ hostvars[item]['mac'] }}.ks"
|
||||
mode: 0644
|
||||
loop: "{{ groups['metal'] }}"
|
||||
|
||||
- name: Start ephemeral PXE server
|
||||
- name: Start the ephemeral PXE server
|
||||
docker_compose:
|
||||
project_src: "{{ role_path }}/files"
|
||||
state: present
|
||||
|
@ -1,8 +1,8 @@
|
||||
- name: Send magic Wake-on-LAN packet
|
||||
- name: Send Wake-on-LAN magic packets
|
||||
community.general.wakeonlan:
|
||||
mac: "{{ hostvars[inventory_hostname]['mac'] }}"
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Wait for the servers to comes up
|
||||
- name: Wait for the machines to come online
|
||||
wait_for_connection:
|
||||
timeout: 600
|
||||
|
Loading…
Reference in New Issue
Block a user