Is it possible for fabric tasks to retrieve information from systems, and record the information locally?

So given this simple task:

unames = dict()
def get_uname():
        uname_info = run('/bin/uname -a')
        unames[env.host] = uname_info

How do I make fabric run some python code at the end of it's execution to do json.dump(unames)?

Cheers,
--
+-Geoff Crompton
+--Debian System Administrator
+---Trinity College

_______________________________________________
Fab-user mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to