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_cachingwithfact_caching_timeout=0to Ansible configuration).The service tag fact is set by the role setup_bios;
This role has to be executed with option
serial: 1otherwise the CSV file might be buggy.
Parameters
Parameter |
Comments |
|---|---|
CSV file to write generated inventory Default: |
Collection links
Repository (Sources) Administrator documentation User documentation