Skip to content

Commit

Permalink
fix: ansible-lint can't load module tosit.tdp.resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
giem-git committed Oct 5, 2023
1 parent ea049b1 commit ca70752
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions plugins/modules/resolve.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Copyright 2022 TOSIT.IO
# SPDX-License-Identifier: Apache-2.0

from __future__ import absolute_import, division, print_function


# pylint: disable=invalid-name
__metaclass__ = type
# pylint: enable=invalid-name

DOCUMENTATION = """
module: resolve
short_description: >-
sets facts for current context
notes:
- This plugin always runs on the execution node
- This plugin will not run on a managed node
"""

EXAMPLES = r"""
---
- name: Hadoop client Config
hosts: hadoop_client
tasks:
- tosit.tdp.resolve:
node_name: hadoop_client
- name: Configure hadoop client
ansible.builtin.import_role:
name: tosit.tdp.hadoop.client
tasks_from: config
- ansible.builtin.meta: clear_facts
"""

RETURN = r"""
# TO-DO: Enter return values here
"""

0 comments on commit ca70752

Please sign in to comment.