Inventory

An inventory file can be generated as CSV with the following playbook:

- name: Construct inventory including service tag
  hosts: computers
  gather_facts: no
  serial: 1
  
  roles:
  - role: ufrmath.computer_labs.inventory

which uses the role ufrmath.computer_labs.inventory.

This playbook write the file in the following format:

hostname,ip,mac,tag
tp-10,10.0.2.10,00:01:02:03:04:10,827R39S
tp-11,10.0.2.11,00:01:02:03:04:e1,827K3R9

the last column being the Dell service tag set by the role ufrmath.setup_bios.

Previous
Next