Hi,
I created an ansible inventory script for joyent. The script does smart caching where it can serve from cache and create a daemon thats does an API to update cache.
The script uses “daemonize” to create a background session and detaches the main process. It works perfect if invoked from command line but when invoked “ansible -i ./joyent.py --list-hosts all” it waits for the damon process somehow.
https://github.com/ahelal/ansible-joyent-inventory/blob/master/joyent.py
Not sure where to start any ideas