mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 18:50:04 -03:30
Add custom_virtualenv param to inventory source and tests
This commit is contained in:
@@ -72,6 +72,12 @@ options:
|
||||
change the output of the openstack.py script. It has to be YAML or
|
||||
JSON.
|
||||
type: str
|
||||
custom_virtualenv:
|
||||
version_added: "2.9"
|
||||
description:
|
||||
- Local absolute file path containing a custom Python virtualenv to use.
|
||||
type: str
|
||||
required: False
|
||||
timeout:
|
||||
description:
|
||||
- Number in seconds after which the Tower API methods will time out.
|
||||
@@ -227,6 +233,7 @@ def main():
|
||||
source_script=dict(required=False),
|
||||
overwrite=dict(type='bool', required=False),
|
||||
overwrite_vars=dict(type='bool', required=False),
|
||||
custom_virtualenv=dict(type='str', required=False),
|
||||
update_on_launch=dict(type='bool', required=False),
|
||||
update_cache_timeout=dict(type='int', required=False),
|
||||
organization=dict(type='str'),
|
||||
@@ -318,7 +325,7 @@ def main():
|
||||
changed=False
|
||||
)
|
||||
|
||||
for key in ('source_vars', 'timeout', 'source_path',
|
||||
for key in ('source_vars', 'custom_virtualenv', 'timeout', 'source_path',
|
||||
'update_on_project_update', 'source_regions',
|
||||
'instance_filters', 'group_by', 'overwrite',
|
||||
'overwrite_vars', 'update_on_launch',
|
||||
|
||||
@@ -306,7 +306,7 @@ def main():
|
||||
playbook=dict(required=True),
|
||||
credential=dict(default=''),
|
||||
vault_credential=dict(default=''),
|
||||
custom_virtualenv=dict(type='str', required=False, default=''),
|
||||
custom_virtualenv=dict(type='str', required=False),
|
||||
forks=dict(type='int'),
|
||||
limit=dict(default=''),
|
||||
verbosity=dict(type='int', choices=[0, 1, 2, 3, 4], default=0),
|
||||
|
||||
@@ -81,7 +81,7 @@ def main():
|
||||
argument_spec = dict(
|
||||
name=dict(required=True),
|
||||
description=dict(),
|
||||
custom_virtualenv=dict(type='str', required=False, default=''),
|
||||
custom_virtualenv=dict(type='str', required=False),
|
||||
state=dict(choices=['present', 'absent'], default='present'),
|
||||
)
|
||||
|
||||
|
||||
@@ -158,7 +158,7 @@ def main():
|
||||
scm_update_on_launch=dict(type='bool', default=False),
|
||||
scm_update_cache_timeout=dict(type='int'),
|
||||
job_timeout=dict(type='int', default=0),
|
||||
custom_virtualenv=dict(type='str', required=False, default=''),
|
||||
custom_virtualenv=dict(type='str', required=False),
|
||||
local_path=dict(),
|
||||
state=dict(choices=['present', 'absent'], default='present'),
|
||||
wait=dict(type='bool', default=True),
|
||||
|
||||
Reference in New Issue
Block a user