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