mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add doc on ansible_version, fix #13204
This commit is contained in:
parent
6a85da7e0c
commit
8b808cab9e
1 changed files with 18 additions and 0 deletions
|
@ -495,6 +495,24 @@ Here is an example of what that might look like::
|
||||||
|
|
||||||
In this pattern however, you could also write a fact module as well, and may wish to consider this as an option.
|
In this pattern however, you could also write a fact module as well, and may wish to consider this as an option.
|
||||||
|
|
||||||
|
.. _ansible_version:
|
||||||
|
|
||||||
|
Ansible version
|
||||||
|
```````````````
|
||||||
|
|
||||||
|
.. versionadded:: 2.0
|
||||||
|
|
||||||
|
To adapt playbook behavior to specific version of ansible, a variable ansible_version is available, with the following
|
||||||
|
structure::
|
||||||
|
|
||||||
|
"ansible_version": {
|
||||||
|
"full": "2.0.0.2",
|
||||||
|
"major": 2,
|
||||||
|
"minor": 0,
|
||||||
|
"revision": 0,
|
||||||
|
"string": "2.0.0.2"
|
||||||
|
}
|
||||||
|
|
||||||
.. _fact_caching:
|
.. _fact_caching:
|
||||||
|
|
||||||
Fact Caching
|
Fact Caching
|
||||||
|
|
Loading…
Reference in a new issue