2021-02-07 02:37:41 +07:00
|
|
|
- name: Start PXE server on the controller
|
2021-02-07 13:12:05 +07:00
|
|
|
hosts: controller
|
2021-03-01 00:55:41 +07:00
|
|
|
vars_prompt:
|
|
|
|
- name: username
|
|
|
|
prompt: Enter username for metal nodes
|
|
|
|
private: no
|
|
|
|
- name: password
|
|
|
|
prompt: Enter password for metal nodes
|
2021-02-07 02:37:41 +07:00
|
|
|
roles:
|
2021-02-28 20:59:26 +07:00
|
|
|
- pxe-server
|
2021-02-07 02:37:41 +07:00
|
|
|
|
2021-02-08 10:09:02 +07:00
|
|
|
- name: Shutdown all nodes
|
2021-02-12 15:41:50 +07:00
|
|
|
hosts: metal
|
2021-02-08 10:09:02 +07:00
|
|
|
roles:
|
2021-02-21 18:18:57 +07:00
|
|
|
- shutdown
|
2021-02-08 10:09:02 +07:00
|
|
|
ignore_unreachable: yes
|
|
|
|
|
2021-02-07 02:37:41 +07:00
|
|
|
- name: Wake all nodes up
|
2021-02-12 15:41:50 +07:00
|
|
|
hosts: metal
|
2021-02-07 02:37:41 +07:00
|
|
|
gather_facts: no
|
|
|
|
roles:
|
2021-02-21 18:18:57 +07:00
|
|
|
- wake
|
2021-02-12 21:09:21 +07:00
|
|
|
|
2021-02-21 10:57:20 +07:00
|
|
|
- name: Provision
|
|
|
|
hosts: metal
|
2021-02-12 21:09:21 +07:00
|
|
|
roles:
|
2021-02-21 18:18:57 +07:00
|
|
|
- lxd
|