summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins/test/version.yml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/plugins/test/version.yml')
-rw-r--r--lib/ansible/plugins/test/version.yml14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/ansible/plugins/test/version.yml b/lib/ansible/plugins/test/version.yml
index 92b60484..9bc31cb0 100644
--- a/lib/ansible/plugins/test/version.yml
+++ b/lib/ansible/plugins/test/version.yml
@@ -36,12 +36,12 @@ DOCUMENTATION:
- ne
default: eq
strict:
- description: Whether to use strict version scheme. Mutually exclusive with C(version_type)
+ description: Whether to use strict version scheme. Mutually exclusive with O(version_type)
type: boolean
required: False
default: False
version_type:
- description: Version scheme to use for comparison. Mutually exclusive with C(strict). See C(notes) for descriptions on the version types.
+ description: Version scheme to use for comparison. Mutually exclusive with O(strict). See C(notes) for descriptions on the version types.
type: string
required: False
choices:
@@ -52,10 +52,10 @@ DOCUMENTATION:
- pep440
default: loose
notes:
- - C(loose) - This type corresponds to the Python C(distutils.version.LooseVersion) class. All version formats are valid for this type. The rules for comparison are simple and predictable, but may not always give expected results.
- - C(strict) - This type corresponds to the Python C(distutils.version.StrictVersion) class. A version number consists of two or three dot-separated numeric components, with an optional "pre-release" tag on the end. The pre-release tag consists of a single letter C(a) or C(b) followed by a number. If the numeric components of two version numbers are equal, then one with a pre-release tag will always be deemed earlier (lesser) than one without.
- - C(semver)/C(semantic) - This type implements the L(Semantic Version,https://semver.org) scheme for version comparison.
- - C(pep440) - This type implements the Python L(PEP-440,https://peps.python.org/pep-0440/) versioning rules for version comparison. Added in version 2.14.
+ - V(loose) - This type corresponds to the Python C(distutils.version.LooseVersion) class. All version formats are valid for this type. The rules for comparison are simple and predictable, but may not always give expected results.
+ - V(strict) - This type corresponds to the Python C(distutils.version.StrictVersion) class. A version number consists of two or three dot-separated numeric components, with an optional "pre-release" tag on the end. The pre-release tag consists of a single letter C(a) or C(b) followed by a number. If the numeric components of two version numbers are equal, then one with a pre-release tag will always be deemed earlier (lesser) than one without.
+ - V(semver)/V(semantic) - This type implements the L(Semantic Version,https://semver.org) scheme for version comparison.
+ - V(pep440) - This type implements the Python L(PEP-440,https://peps.python.org/pep-0440/) versioning rules for version comparison. Added in version 2.14.
EXAMPLES: |
- name: version test examples
assert:
@@ -78,5 +78,5 @@ EXAMPLES: |
- "'2.14.0rc1' is version('2.14.0', 'lt', version_type='pep440')"
RETURN:
_value:
- description: Returns C(True) or C(False) depending on the outcome of the comparison.
+ description: Returns V(True) or V(False) depending on the outcome of the comparison.
type: boolean