khuedoan-homelab/metal/playbook.yml

28 lines
481 B
YAML
Raw Normal View History

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
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
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
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-21 10:57:20 +07:00
- name: Provision
hosts: metal
roles:
2021-02-21 18:18:57 +07:00
- lxd