def ansible_local_init(ansible_inv):
 ansible_inv['local'] = {}
 ansible_inv['local']['hosts'] = ['localhost']
 ansible_inv['local']['vars'] = {'ansible_connection': 'local'}

def ansible_local_init ( ansible_inv ) : ansible_inv [ 'local' ] = { } ansible_inv [ 'local' ] [ 'hosts' ] = [ 'localhost' ] ansible_inv [ 'local' ] [ 'vars' ] = { 'ansible_connection' : 'local' }
initialize a ansible local .