mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 21:07:39 -02:30
update the inventory source module to respect new fields
This commit is contained in:
@@ -57,6 +57,18 @@ options:
|
|||||||
description:
|
description:
|
||||||
- The variables or environment fields to apply to this source type.
|
- The variables or environment fields to apply to this source type.
|
||||||
type: dict
|
type: dict
|
||||||
|
enabled_var:
|
||||||
|
description:
|
||||||
|
- The variable to use to determine enabled state e.g., "status.power_state"
|
||||||
|
type: str
|
||||||
|
enabled_value:
|
||||||
|
description:
|
||||||
|
- Value when the host is considered enabled, e.g., "powered_on"
|
||||||
|
type: str
|
||||||
|
host_filter:
|
||||||
|
description:
|
||||||
|
- If specified, AWX will only import hosts that match this regular expression.
|
||||||
|
type: str
|
||||||
credential:
|
credential:
|
||||||
description:
|
description:
|
||||||
- Credential to use for the source.
|
- Credential to use for the source.
|
||||||
@@ -152,6 +164,9 @@ def main():
|
|||||||
source_path=dict(),
|
source_path=dict(),
|
||||||
source_script=dict(),
|
source_script=dict(),
|
||||||
source_vars=dict(type='dict'),
|
source_vars=dict(type='dict'),
|
||||||
|
enabled_var=dict(),
|
||||||
|
enabled_value=dict(),
|
||||||
|
host_filter=dict(),
|
||||||
credential=dict(),
|
credential=dict(),
|
||||||
overwrite=dict(type='bool'),
|
overwrite=dict(type='bool'),
|
||||||
overwrite_vars=dict(type='bool'),
|
overwrite_vars=dict(type='bool'),
|
||||||
@@ -232,7 +247,7 @@ def main():
|
|||||||
'description', 'source', 'source_path', 'source_vars',
|
'description', 'source', 'source_path', 'source_vars',
|
||||||
'overwrite', 'overwrite_vars', 'custom_virtualenv',
|
'overwrite', 'overwrite_vars', 'custom_virtualenv',
|
||||||
'timeout', 'verbosity', 'update_on_launch', 'update_cache_timeout',
|
'timeout', 'verbosity', 'update_on_launch', 'update_cache_timeout',
|
||||||
'update_on_project_update'
|
'update_on_project_update', 'enabled_var', 'enabled_value', 'host_filter',
|
||||||
)
|
)
|
||||||
|
|
||||||
# Layer in all remaining optional information
|
# Layer in all remaining optional information
|
||||||
|
|||||||
Reference in New Issue
Block a user