inventory role – Write hosts inventory

Note

This role is part of the ufrmath.computer_labs collection (version 1.0.0).

To install it use: ansible-galaxy collection install git+https://github.com/guillod/computer_labs.

To use it in a playbook, specify: ufrmath.computer_labs.inventory.

Entry point main – Write hosts inventory

Synopsis

  • Construct hosts inventory as a CSV file with hostname, ip adress, mac addresse, and service tag;

  • All informations have to be (consider adding fact_caching with fact_caching_timeout=0 to Ansible configuration).

  • The service tag fact is set by the role setup_bios;

  • This role has to be executed with option serial: 1 otherwise the CSV file might be buggy.

Parameters

Parameter

Comments

output

string

CSV file to write generated inventory

Default: "inventory.csv"