options = Options(listtags=False, listtasks=False, listhosts=False, syntax=
    False, connection='ssh', module_path=None, forks=100, remote_user=
    'slotlocker', private_key_file=None, ssh_common_args=None,
    ssh_extra_args=None, sftp_extra_args=None, scp_extra_args=None, become=
    True, become_method=None, become_user='root', verbosity=None, check=False)
variable_manager.extra_vars = {'hosts': 'mywebserver'}
passwords = {}
pbex = PlaybookExecutor(playbooks=[playbook_path], inventory=inventory,
    variable_manager=variable_manager, loader=loader, options=options,
    passwords=passwords)
results = pbex.run()
How to use Ansible 2.0 Python API to run a Playbook?