8000 tower_workflow_template extra_vars · Issue #49728 · ansible/ansible · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
tower_workflow_template extra_vars #49728
Closed
@LeoUfimtsev

Description

@LeoUfimtsev
SUMMARY

extra_vars not working for tower_workflow_template module.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

tower_workflow_template.py

ANSIBLE VERSION
ansible 2.7.4
CONFIGURATION
OS / ENVIRONMENT

CentOS 7.4

STEPS TO REPRODUCE

Create workflow as per example:
https://docs.ansible.com/ansible/latest/modules/tower_workflow_template_module.html#tower-workflow-template-module

Add "extra_var:" argument

  tower_workflow_template:
  ...
     extra_vars:
        hello: world
  ...
EXPECTED RESULTS

Should create workflow with latest extra_vars

ACTUAL RESULTS


Traceback (most recent call last):
  File "/home/lufimtsev/.ansible/tmp/ansible-tmp-1544457275.09-227335667154249/AnsiballZ_tower_workflow_template.py", line 113, in <module>
    _ansiballz_main()
  File "/home/lufimtsev/.ansible/tmp/ansible-tmp-1544457275.09-227335667154249/AnsiballZ_tower_workflow_template.py", line 105, in _ansiballz_main
    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
  File "/home/lufimtsev/.ansible/tmp/ansible-tmp-1544457275.09-227335667154249/AnsiballZ_tower_workflow_template.py", line 48, in invoke_module
    imp.load_module('__main__', mod, module, MOD_DESC)
  File "/tmp/ansible_tower_workflow_template_payload_THeAOl/__main__.py", line 191, in <module>
  File "/tmp/ansible_tower_workflow_template_payload_THeAOl/__main__.py", line 175, in main
  File "/usr/lib/python2.7/site-packages/tower_cli/models/base.py", line 698, in modify
    return self.write(pk, create_on_missing=create_on_missing, force_on_exists=True, **kwargs)
  File "/usr/lib/python2.7/site-packages/tower_cli/models/base.py", line 1137, in write
    kwargs['extra_vars'] = parser.process_extra_vars(kwargs['extra_vars'])
  File "/usr/lib/python2.7/site-packages/tower_cli/utils/parser.py", line 130, in process_extra_vars
    opt_dict = string_to_dict(extra_vars_opt, allow_kv=True)
  File "/usr/lib/python2.7/site-packages/tower_cli/utils/parser.py", line 105, in string_to_dict
    'variables.\nvariables: \n%s' % var_string
tower_cli.exceptions.TowerCLIError: failed to parse some of the extra variables.
variables:
{

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects_2.7This issue/PR affects Ansible v2.7bugThis issue/PR relates to a bug.moduleThis issue/PR relates to a module.support:communityThis issue/PR relates to code supported by the Ansible community.towerTower communitytracebackThis issue/PR includes a traceback.web_infrastructureWeb-infrastructure category

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0