When using ansible and its “setup” module to gather ad-hoc facts-data about multiple hosts, remember that it runs the jobs in parallel which may result in out-of-order output. With “ansible -f1” the number of parallel processes can be limited to one to ensure this won’t happen. E.g.:
$ ansible all -f1 -m setup -a filter=ansible_mounts
(the filter argument for the facts module is also a nice feature).
June 1, 2013 at 11:52 pm |
Reblogged this on txwikinger's blog.