mirror of
https://github.com/ansible/awx.git
synced 2024-10-30 05:25:29 +03:00
Notes/todos.
This commit is contained in:
parent
0250537065
commit
9307e2de26
@ -403,6 +403,10 @@ class Host(CommonModelNameNotUnique):
|
||||
import lib.urls
|
||||
return reverse(lib.urls.views_HostsDetail, args=(self.pk,))
|
||||
|
||||
# relationship to LaunchJobStatus
|
||||
# relationship to LaunchJobStatusEvent
|
||||
# last_job_status
|
||||
|
||||
class Group(CommonModelNameNotUnique):
|
||||
|
||||
'''
|
||||
|
@ -46,6 +46,7 @@ def run_launch_job(launch_job_status_pk):
|
||||
cmdline = ['ansible-playbook', '-i', inventory_script]#, '-v']
|
||||
cmdline.append(playbook)
|
||||
|
||||
# FIXME: How to cancel/interrupt job? (not that important for now)
|
||||
proc = subprocess.Popen(cmdline, stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE, env=env)
|
||||
stdout, stderr = proc.communicate()
|
||||
|
@ -59,6 +59,7 @@ class CallbackModule(object):
|
||||
|
||||
def _log_event(self, event, **event_data):
|
||||
#print '====', event, args, kwargs
|
||||
# self.playbook.inventory
|
||||
if hasattr(self, 'launch_job_status'):
|
||||
kwargs = {
|
||||
'event': event,
|
||||
|
Loading…
Reference in New Issue
Block a user