mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 14:36:00 -03:30
Added support and tests for --check option.
This commit is contained in:
@@ -47,7 +47,9 @@ def run_launch_job(launch_job_status_pk):
|
||||
env['ANSIBLE_TRANSPORT'] = getattr(settings, 'ANSIBLE_TRANSPORT')
|
||||
|
||||
playbook = launch_job.project.default_playbook
|
||||
cmdline = ['ansible-playbook', '-i', inventory_script]#, '-v']
|
||||
cmdline = ['ansible-playbook', '-i', inventory_script]
|
||||
if launch_job.job_type == 'check':
|
||||
cmdline.append('--check')
|
||||
cmdline.append(playbook)
|
||||
|
||||
# FIXME: How to cancel/interrupt job? (not that important for now)
|
||||
|
||||
Reference in New Issue
Block a user