ansible-collections / ibm.storage_virtualize

GNU General Public License v3.0
3 stars 9 forks source link

ibm_svc_info should be modified to gather facts which can be maintained as part of inventory #11

Closed mainline-automation closed 10 months ago

mainline-automation commented 1 year ago
SUMMARY

Currently ibm_svc_info generates a list of details about the system. However, this job runs locally and it is difficult to maintain them as facts. Other locally executed modules (Ansible Networking collections, as one example) still gather facts to maintain an inventory of the environment. It would be good to see ibm_svc_info changed to allow the gathering of facts to keep the FlashSystems as part of the inventory.

ISSUE TYPE
COMPONENT NAME

ibm_svc_info

ADDITIONAL INFORMATION

Maintaining an inventory with all relevant facts can be useful in numerous situations as it would allow the referencing of inventory without constantly needing to rerun ibm_svc_info to gather information.

Sandip-Rajbanshi commented 11 months ago

@mainline-automation,

  1. It can be done as this playbook does: https://github.com/ansible-collections/ibm.storage_virtualize/blob/develop/playbooks/cluster_config_replication/extract_src_cluster_config.yml
  2. User can maintain an inventory via the playbooks. However, the risk is, if someone tries to use inventory at a later time, he/she may not be using most updated information. Does it resolve your query? If yes, I'll go ahead and close this issue.
sumitguptaibm commented 10 months ago

@mainline-automation, can you please respond to this? In case of no response, this case will be closed by 3rd January 2024.

Sandip-Rajbanshi commented 10 months ago

@mainline-automation, Since there is no response, closing the issue. Please reopen if required.