Hi All,
I am very new to Ansible, currently i am trying to evaluate ansible.
i know by using ansible inventory command i can get all information about a system, like ( kernel,Os,network,memory)
but i wanted to insert those information into mysql Database.
i know its possible, but I am looking for some example to see how it can be done. (possible with ansible + python )
can any one please help me with this ? i am looking for some sample module or documentation for this so that i can follow it.
Hi Brian,
Thanks, i looked at that module, but still dont understand, how are you inserting data in to a backed database ?
example :-
this module : https://github.com/rishabhdas/dmidecode-ansible
will provide hardware information, but i want to add those into into database for inventory or audit,
how will i accomplish this ?
I just need a basic example of how i can achieve this to understand the bigger picture.
in the case of facts, this happens automatically via cache plugin
(when enabled), if using a specific module that does not return facts,
you have to update the database yourself.
as you can see i am very new, would you be able to give some example how thats work, i am still looking for some module where the out put will be inserted into database.