Skip to main content
Solved

Ansible?

  • September 22, 2023
  • 4 replies
  • 242 views

yancyb
Apprentice
Forum|alt.badge.img

Is anyone using the FreshService CMDB as a dynamic inventory for ansible? Wondering how difficult that might be to implement.

Best answer by eeha0120

Hi.

Yes, there’s an API and there are tags, so, yes, I think it can definitely be done.

View original
Did this topic help you find an answer to your question?

4 replies

eeha0120
Skilled Expert
Forum|alt.badge.img+12
  • Skilled Expert
  • 749 replies
  • September 28, 2023

Hi.

What a terrific idea. Not having tried it yey.

Could you please share your findings if you managed to do it?

Regards,

Elvis


yancyb
Apprentice
Forum|alt.badge.img
  • Author
  • Apprentice
  • 1 reply
  • September 28, 2023

I haven’t gotten to that point yet, as we are still working on getting FreshService up and running. I’m not super familiar with FreshService yet, but as long as there’s an API and some form of tagging, I think it’ll be easy to implement. I was just hoping there might be someone who’s already done it. :)


eeha0120
Skilled Expert
Forum|alt.badge.img+12
  • Skilled Expert
  • 749 replies
  • Answer
  • October 7, 2023

Hi.

Yes, there’s an API and there are tags, so, yes, I think it can definitely be done.


  • Community Debut
  • 1 reply
  • October 8, 2023

Using FreshService CMDB as a dynamic inventory for Ansible is feasible but may require some custom scripting and configuration. You'd need to write a script to extract data from FreshService and format it into a JSON or YAML structure that Ansible can understand as an inventory. Regular updates and synchronization would also be necessary to ensure accuracy. The complexity of implementation depends on the specific requirements and the APIs available in FreshService for data retrieval. It's recommended to consult with someone experienced in both Ansible and FreshService integration for a smoother implementation process.


Reply