summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/module_utils_ansible_release/library/ansible_release.py
blob: 528465da52554b0d008fd0bcd8d16d9028d12831 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/python

# Copyright: (c) 2021, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type

DOCUMENTATION = r'''
---
module: ansible_release
short_description: Get ansible_release info from module_utils
description: Get ansible_release info from module_utils
author:
- Ansible Project
'''

EXAMPLES = r'''
#
'''

RETURN = r'''
#
'''

from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.ansible_release import __version__, __author__, __codename__


def main():
    module = AnsibleModule(argument_spec={})
    result = {
        'version': __version__,
        'author': __author__,
        'codename': __codename__,
    }
    module.exit_json(**result)


if __name__ == '__main__':
    main()