kayobe/ansible/drac-facts.yml
Mark Goddard 27db155c0e Add support for monitoring nodes
Currently these nodes are not deployed using kolla-ansible but use the
host provisioning and host OS configuration pieces of kayobe. The
monasca-deploy project is used to deploy the monitoring services.
2017-05-29 16:52:17 +01:00

26 lines
659 B
YAML

---
- name: Gather and display BIOS and RAID facts from iDRACs
hosts: overcloud
gather_facts: no
roles:
# The role simply pulls in the drac_facts module.
- role: stackhpc.drac-facts
tasks:
- name: Gather facts via DRAC
local_action:
module: drac_facts
address: "{{ ipmi_address }}"
username: "{{ ipmi_username }}"
password: "{{ ipmi_password }}"
register: result
- name: Display results
debug:
var: result
- name: Write facts to a file
local_action:
module: copy
content: "{{ result }}"
dest: "/tmp/drac-facts-{{ inventory_hostname }}.json"