add custom_venv for backward compatibility

This commit is contained in:
sean-m-ssullivan
2021-05-03 21:35:21 -05:00
parent ddb1d12a79
commit 715aead961
4 changed files with 34 additions and 0 deletions

View File

@@ -113,6 +113,12 @@ options:
description:
- Default Execution Environment to use for jobs relating to the project.
type: str
custom_virtualenv:
description:
- Local absolute file path containing a custom Python virtualenv to use.
- Only compatible with older versions of AWX/Tower
- Deprecated, will be removed in the future
type: str
organization:
description:
- Name of organization for project.
@@ -262,6 +268,7 @@ def main():
allow_override=dict(type='bool', aliases=['scm_allow_override']),
timeout=dict(type='int', default=0, aliases=['job_timeout']),
default_environment=dict(),
custom_virtualenv=dict(),
organization=dict(),
notification_templates_started=dict(type="list", elements='str'),
notification_templates_success=dict(type="list", elements='str'),
@@ -286,6 +293,7 @@ def main():
scm_update_on_launch = module.params.get('scm_update_on_launch')
scm_update_cache_timeout = module.params.get('scm_update_cache_timeout')
default_ee = module.params.get('default_environment')
custom_virtualenv = module.params.get('custom_virtualenv')
organization = module.params.get('organization')
state = module.params.get('state')
wait = module.params.get('wait')