Hi to all,

I need some ideas about my problem, so if anybody has some ideas I would be 
very gratefull. 

I want to generate some report on ansible server.
My idea is to create custom facts which gather some information on some 
hosts.
That information (facts) would be input for my html report about all hosts 
from where I gather facts.
So, first task would be gather custom facts which I run on some group.
My question is, how to use that collected facts to locally (on ansible 
server) populate some html template (jinja2).

Or more specifically, let say I have custom facts which generate following 
output.


"ansible_local": {
     getFacts: [
        {
            "var1": "valueOne",
            "var2": "valueTwo"
        },
        { 
            "valueDict": {
                   "dictVar1": "dictValueOne",
                   "dictVar1": "dictValueOne"
}
} 
]
}

So when I run setup module on multiple hosts, which result is previous 
facts, how to use all that facts to generate one report with all values.

host                         var1              
hostname1              valueOne
hostname2              valueTwo
hostname3              valueThree

Thanks in advance...



-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to