Skip to content

Commit

Permalink
Add boot from disk tasks for pxe vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
nocturnalastro committed Jul 6, 2022
1 parent 2c45c58 commit c21bb60
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions roles/vendors/pxe/tasks/disk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
- name: PXE server Power off servers
ipmi_power:
name: "{{ bmc_address }}"
user: "{{ bmc_user }}"
password: "{{ bmc_password }}"
state: off

- name: Set server to boot from network
ipmi_boot:
name: "{{ bmc_address }}"
user: "{{ bmc_user }}"
password: "{{ bmc_password }}"
bootdev: hd
persistent: no
uefiboot: yes

- name: PXE server Power on
ipmi_power:
name: "{{ bmc_address }}"
user: "{{ bmc_user }}"
password: "{{ bmc_password }}"
state: boot

0 comments on commit c21bb60

Please sign in to comment.