-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inventory Device type detection #151
Comments
marked this issue as related to #74 |
added 2m of time spent |
In GitLab by @jasonpagetas on Jul 20, 2024, 23:49 During the gather facts stage one of the returns is: (This was on a laptop) "ansible_form_factor": "Notebook",
|
In GitLab by @jasonpagetas on Jul 20, 2024, 23:49 added 3m of time spent |
this will need to be confirmed via the docs if the value is always populated. |
added 2m of time spent |
In GitLab by @jasonpagetas on Jul 21, 2024, 24:50 Even if it doesn't you can still gather the hardware facts using something like this ---
- name: Collect Form factor
hosts: localhost
become: false
gather_facts: false
tasks:
- name: Collect 'hardware' only facts!
setup:
gather_subset:
- hardware
- name: debug
debug:
var: hostvars[inventory_hostname].ansible_form_factor
|
In GitLab by @jasonpagetas on Jul 21, 2024, 24:54 This is the link to where i mentioned the values that can be returned for ansible_form_factor |
as part of conducting the device inventory detect the device type to populate the ITAM database.
Requirements
Computer
The text was updated successfully, but these errors were encountered: