From a706ca30c43bb17de125a0c03381a5a9e56e75c5 Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Sun, 6 Mar 2022 14:47:32 +0700 Subject: [PATCH] style(metal): update some task names --- metal/roles/pxe_server/tasks/main.yml | 12 ++++++------ metal/roles/wake/tasks/main.yml | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/metal/roles/pxe_server/tasks/main.yml b/metal/roles/pxe_server/tasks/main.yml index 96a6ded2..dd9fdf2a 100644 --- a/metal/roles/pxe_server/tasks/main.yml +++ b/metal/roles/pxe_server/tasks/main.yml @@ -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 diff --git a/metal/roles/wake/tasks/main.yml b/metal/roles/wake/tasks/main.yml index ebd8e736..2a2a0191 100644 --- a/metal/roles/wake/tasks/main.yml +++ b/metal/roles/wake/tasks/main.yml @@ -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