play_source = dict( name = "Ansible Play THIS COULD BE YOUR AD!", hosts = '192.168.56.212', gather_facts = 'no', tasks = [ dict( #action=dict(module='debug', args=dict(msg='Hello Galaxy!')) action=dict(module='sysctl', args=dict(name='net.ipv4.ip_forward', value=1, state='present')) )] ) """ #play = Play().load(play_source, variable_manager=variable_manager, loader=loader) play = Play() play.name = "custom play" play.variable_manager=variable_manager play.loader=loader play.hosts = ['192.168.56.212'] play.gather_facts = 'no' play.tasks = Task().load("asdasd") # actually run it tqm = None try: tqm = TaskQueueManager( inventory=inventory, variable_manager=variable_manager, loader=loader, options=options, passwords=passwords, # TODO callback must be an instance of CallbackBase or the name of a callback plugin stdout_callback='default', )