update isolated task execution for ansible-runner

This commit is contained in:
Ryan Petrello
2019-03-01 13:08:26 -05:00
committed by chris meyers
parent 8fb65b40de
commit 602ef9750f
20 changed files with 190 additions and 1344 deletions

View File

@@ -50,7 +50,7 @@ def main():
)
try:
version = subprocess.check_output(
['awx-expect', '--version'],
['ansible-runner', '--version'],
stderr=subprocess.STDOUT
).strip()
except subprocess.CalledProcessError as e:

View File

@@ -51,7 +51,7 @@ def main():
try:
re_match = re.match(r'\/tmp\/ansible_awx_\d+_.+', path)
if re_match is not None:
if subprocess.check_call(['awx-expect', 'is-alive', path]) == 0:
if subprocess.check_call(['ansible-runner', 'is-alive', path]) == 0:
continue
else:
module.debug('Deleting path {} its job has completed.'.format(path))