mirror of https://github.com/ansible/ansible.git
Fix validating role params of dependencies that are used by ansible-galaxy
Validate normally if these are documented by the role, but don't require documentation since the role may be unaware of these fields used by ansible-galaxy.pull/82182/head
parent
dec9eeb2e5
commit
facf3dfde2
@ -0,0 +1,11 @@
|
||||
dependencies:
|
||||
# src/scm/version/role are used by ansible-galaxy when installing dependencies
|
||||
- src: a
|
||||
version: unknown
|
||||
a_str: required
|
||||
|
||||
# only validate these fields if the argument spec includes them
|
||||
- role: validate_role_req
|
||||
scm: svn
|
||||
src: othersource
|
||||
version: "1.0.0"
|
@ -0,0 +1,17 @@
|
||||
argument_specs:
|
||||
main:
|
||||
short_description: Main entrypoint to test validating the overloaded role params scm, src, and version.
|
||||
options:
|
||||
scm:
|
||||
type: str
|
||||
description: role variable 'scm'
|
||||
choices:
|
||||
- "git"
|
||||
src:
|
||||
type: str
|
||||
description: role variable 'src'
|
||||
choices:
|
||||
- "src"
|
||||
version:
|
||||
type: int
|
||||
description: role variable 'version'
|
Loading…
Reference in New Issue