Skip to content
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

Open
2 tasks
jon-nfc opened this issue Jul 20, 2024 · 8 comments
Open
2 tasks

Inventory Device type detection #151

jon-nfc opened this issue Jul 20, 2024 · 8 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed Migrated from Gitlab This issue/PR was migrated from GitLab see #213 type::feature Issue Type

Comments

@jon-nfc
Copy link
Member

jon-nfc commented Jul 20, 2024

as part of conducting the device inventory detect the device type to populate the ITAM database.

Requirements

  • Playbook updated
  • Detects Computer
@jon-nfc
Copy link
Member Author

jon-nfc commented Jul 20, 2024

marked this issue as related to #74

@jon-nfc
Copy link
Member Author

jon-nfc commented Jul 20, 2024

added 2m of time spent

@jon-nfc
Copy link
Member Author

jon-nfc commented Jul 20, 2024

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",

@jon-nfc
Copy link
Member Author

jon-nfc commented Jul 20, 2024

In GitLab by @jasonpagetas on Jul 20, 2024, 23:49

added 3m of time spent

@jon-nfc
Copy link
Member Author

jon-nfc commented Jul 21, 2024

this will need to be confirmed via the docs if the value is always populated.

@jon-nfc
Copy link
Member Author

jon-nfc commented Jul 21, 2024

added 2m of time spent

@jon-nfc
Copy link
Member Author

jon-nfc commented Jul 21, 2024

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

@jon-nfc
Copy link
Member Author

jon-nfc commented Jul 21, 2024

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

github link

@jon-nfc jon-nfc added Migrated from Gitlab This issue/PR was migrated from GitLab see #213 good first issue Good for newcomers help wanted Extra attention is needed and removed module::itam labels Aug 8, 2024
@jon-nfc jon-nfc mentioned this issue Aug 8, 2024
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed Migrated from Gitlab This issue/PR was migrated from GitLab see #213 type::feature Issue Type
Projects
Status: No status
Development

No branches or pull requests

1 participant