ansible: blacklist everything except our own namespaces

Farewell, pointless roundtrips, we hardly knew ye.
This commit is contained in:
David Wilson 2018-02-15 20:12:37 +05:45
parent b543b84e80
commit 54a3777ff3
1 changed files with 2 additions and 5 deletions

View File

@ -103,11 +103,8 @@ class StrategyModule(ansible.plugins.strategy.linear.StrategyModule):
def run(self, iterator, play_context, result=0):
self.router = mitogen.master.Router()
self.router.responder.blacklist('OpenSSL')
self.router.responder.blacklist('urllib3')
self.router.responder.blacklist('requests')
self.router.responder.blacklist('systemd')
self.router.responder.blacklist('selinux')
self.router.responder.whitelist_prefix('ansible')
self.router.responder.whitelist_prefix('ansible_mitogen')
self.listener = mitogen.unix.Listener(self.router)
os.environ['LISTENER_SOCKET_PATH'] = self.listener.path