Skip to content

new set_var - #75215

Draft
bcoca wants to merge 1 commit into
ansible:develfrom
bcoca:set_var
Draft

bcoca wants to merge 1 commit into
ansible:develfrom
bcoca:set_var

Conversation

@bcoca

@bcoca bcoca commented Jul 8, 2021

Copy link
Copy Markdown
Member

allow more flexible var setting

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

set_var

@ansibot ansibot added WIP affects_2.12 feature This issue/PR relates to a feature request. needs_triage Needs a first human triage before being processed. labels Jul 8, 2021
@ansibot

ansibot commented Jul 8, 2021

Copy link
Copy Markdown
Contributor

The test ansible-test sanity --test shellcheck [explain] failed with 1 error:

test/integration/targets/interpreter_discovery_python/tasks/library/bashmodule.sh:1:1: SC2148: Tips depend on target shell and yours is unknown. Add a shebang.

The test ansible-test sanity --test shebang [explain] failed with 1 error:

test/integration/targets/interpreter_discovery_python/tasks/library/bashmodule.sh:0:0: file without shebang should not be executable

The test ansible-test sanity --test action-plugin-docs [explain] failed with 1 error:

lib/ansible/plugins/action/set_var.py:0:0: action plugin has no matching module to provide documentation

The test ansible-test sanity --test pylint [explain] failed with 1 error:

lib/ansible/executor/task_executor.py:658:33: undefined-variable: Undefined variable 'results'

click here for bot help

@ansibot ansibot added collection module This issue/PR relates to a module. labels Jul 8, 2021
@ansibot

ansibot commented Jul 8, 2021

Copy link
Copy Markdown
Contributor

The test ansible-test sanity --test shellcheck [explain] failed with 1 error:

test/integration/targets/interpreter_discovery_python/tasks/library/bashmodule.sh:1:1: SC2148: Tips depend on target shell and yours is unknown. Add a shebang.

The test ansible-test sanity --test shebang [explain] failed with 1 error:

test/integration/targets/interpreter_discovery_python/tasks/library/bashmodule.sh:0:0: file without shebang should not be executable

The test ansible-test sanity --test pep8 [explain] failed with 1 error:

lib/ansible/plugins/action/set_var.py:44:161: E501: line too long (166 > 160 characters)

The test ansible-test sanity --test action-plugin-docs [explain] failed with 1 error:

lib/ansible/plugins/action/set_var.py:0:0: action plugin has no matching module to provide documentation

The test ansible-test sanity --test validate-modules [explain] failed with 3 errors:

lib/ansible/modules/set_vars.py:0:0: invalid-documentation: DOCUMENTATION.author: Invalid author for dictionary value @ data['author']. Got 'Ansible Project'
lib/ansible/modules/set_vars.py:0:0: invalid-documentation: DOCUMENTATION.options.scope.type: not a valid value for dictionary value @ data['options']['scope']['type']. Got 'string'
lib/ansible/modules/set_vars.py:0:0: missing-return: No RETURN provided

The test ansible-test sanity --test pylint [explain] failed with 1 error:

lib/ansible/executor/task_executor.py:658:33: undefined-variable: Undefined variable 'results'

click here for bot help

@bcoca bcoca removed the needs_triage Needs a first human triage before being processed. label Jul 8, 2021
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Jul 16, 2021
@ansibot ansibot added the needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html label Mar 2, 2022
@ansibot ansibot added needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI. and removed stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. labels Jul 6, 2023
@ansibot ansibot added needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html and removed needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI. labels Oct 24, 2023
@ansibot ansibot added the stale_pr This PR has not been pushed to for more than one year. label Jan 28, 2025
@ansibot ansibot removed needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html stale_pr This PR has not been pushed to for more than one year. labels Jun 10, 2025
@ansibot

ansibot commented Jun 10, 2025

Copy link
Copy Markdown
Contributor

The test ansible-test sanity --test pep8 [explain] failed with 1 error:

lib/ansible/plugins/action/set_var.py:44:161: E501: line too long (166 > 160 characters)

The test ansible-test sanity --test pylint [explain] failed with 2 errors:

lib/ansible/executor/task_executor.py:657:33: undefined-variable: Undefined variable 'results'
lib/ansible/plugins/strategy/__init__.py:740:67: undefined-variable: Undefined variable 'iteritems'

The test ansible-test sanity --test validate-modules [explain] failed with 5 errors:

lib/ansible/modules/set_vars.py:0:0: invalid-documentation: DOCUMENTATION.author: Invalid author for dictionary value @ data['author']. Got 'Ansible Project'
lib/ansible/modules/set_vars.py:0:0: invalid-documentation: DOCUMENTATION.options.scope.type: not a valid value for dictionary value @ data['options']['scope']['type']. Got 'string'
lib/ansible/modules/set_vars.py:0:0: missing-return: No RETURN provided
lib/ansible/modules/set_vars.py:0:0: module-incorrect-version-added: version_added should be '2.19'. Currently '2.12'
lib/ansible/modules/set_vars.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.defs: Argument defines type as list but elements is not defined for dictionary value @ data['options']['defs']. Got {'description': ['A list of dictionaries that represent a variable definition'], 'type': 'list', 'required': True}

The test ansible-test sanity --test action-plugin-docs [explain] failed with 1 error:

lib/ansible/plugins/action/set_var.py:0:0: action plugin has no matching module to provide documentation

The test ansible-test sanity --test boilerplate [explain] failed with 6 errors:

lib/ansible/modules/set_vars.py:0:0: invalid: __metaclass__ = type
lib/ansible/modules/set_vars.py:0:0: invalid: from __future__ import absolute_import, division, print_function
lib/ansible/modules/set_vars.py:0:0: missing: from __future__ import annotations
lib/ansible/plugins/action/set_var.py:0:0: invalid: __metaclass__ = type
lib/ansible/plugins/action/set_var.py:0:0: invalid: from __future__ import (absolute_import, division, print_function)
lib/ansible/plugins/action/set_var.py:0:0: missing: from __future__ import annotations

The test ansible-test sanity --test mypy [explain] failed with 2 errors:

lib/ansible/executor/task_executor.py:657:34: name-defined: Name "results" is not defined
lib/ansible/plugins/strategy/__init__.py:740:68: name-defined: Name "iteritems" is not defined

The test ansible-test sanity --test shebang [explain] failed with 1 error:

test/integration/targets/interpreter_discovery_python/tasks/library/bashmodule.sh:0:0: file without shebang should not be executable

The test ansible-test sanity --test shellcheck [explain] failed with 1 error:

test/integration/targets/interpreter_discovery_python/tasks/library/bashmodule.sh:1:2: SC1113: Use #!, not just #, for the shebang.

click here for bot help

@ansibot ansibot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. label Jun 10, 2025
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Jun 24, 2025
@ansibot ansibot added the needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html label Apr 7, 2026
@ansibot ansibot added stale_pr This PR has not been pushed to for more than one year. and removed collection:arista.avd labels Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

affects_2.12 feature This issue/PR relates to a feature request. module This issue/PR relates to a module. needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. stale_pr This PR has not been pushed to for more than one year.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants