According to the setup 
module http://docs.ansible.com/ansible/latest/setup_module.html, you can 
specify a path to a folder where it will execute custom scripts.

- setup:
    fact_path: C:\temp

With the example above, it will gather the normal facts but will also run 
each ".ps1" script in C:\temp and add them to the facts. The scripts must 
output a JSON string which Ansible then adds to the facts returned, this 
can be done like so

$facts = @{}
$facts.ansible_custom_fact = "custom fact"

Write-Output (ConvertTo-Json -InputObject $facts -Compress)

-- 
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