Hi all
Is there a way to store facts like (mem,CPU,HD etc ) to a txt file ?
Thanks !
Marcio X
Hi all
Is there a way to store facts like (mem,CPU,HD etc ) to a txt file ?
Thanks !
Marcio X
use ansible-cmdb.
https://ansible-cmdb.readthedocs.io/en/latest/#:~:text=Ansible-cmdb%20takes%20the%20output,by%20Ansible%20with%20custom%20data.
Something like this could do the trick
If debug_mode is enabled, it will generate a /tmp/setup-$(hostname).json file with facts gathered in the ansible control machine.
Regards,
fact cache plugins can be used, the JSON one is particularly useful
for this case.
Perfect !
I am so thankful for you helping guys !
Have a great weekend
Marcio Xavier