Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ansible-lint can't load module tosit.tdp.resolve #803

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
"""
Loading