File: fake_module.py

package info (click to toggle)
ansible-lint 26.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,176 kB
  • sloc: python: 19,941; sh: 96; makefile: 7
file content (25 lines) | stat: -rw-r--r-- 511 bytes parent folder | download | duplicates (2)
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
"""Sample custom ansible module named fake_module.

This is used to test ability to detect and use custom modules.
"""

from ansible.module_utils.basic import AnsibleModule

EXAMPLES = r"""
- name: "playbook"
  tasks:
    - name: Hello
      debug:
        msg: 'world'
"""


def main() -> None:
    """Return the module instance."""
    AnsibleModule(
        argument_spec={
            "data": {"default": None},
            "path": {"default": None},
            "file": {"default": None},
        },
    )