'Some vars are substituted into the modules.  Have to make sure
that those are correct for localhost when synchronize creates its own
connection to localhost.'

def _override_module_replaced_vars(self, task_vars):

    if ('ansible_syslog_facility' in task_vars):
        del task_vars['ansible_syslog_facility']
    for key in list(task_vars.keys()):
        if (key.startswith('ansible_') and key.endswith('_interpreter')):
            del task_vars[key]
    for host in C.LOCALHOST:
        if (host in task_vars['hostvars']):
            localhost = task_vars['hostvars'][host]
            break
    if ('ansible_syslog_facility' in localhost):
        task_vars['ansible_syslog_facility'] = localhost['ansible_syslog_facility']
    for key in localhost:
        if (key.startswith('ansible_') and key.endswith('_interpreter')):
            task_vars[key] = localhost[key]
