Skip to content

Mismatched variable names between url and source under python-tools.yml #10

@sacsrfice

Description

@sacsrfice

When using community.general.pipx and the loop for the 3 tools, the source: declaration is referring to item.url and the loop was declaring the git pull under url.
Based on the Ansible docs for the module, it's looking for the git pull in a variable called source instead.
This causes a syntax error when running the playbook that points to "item", which isn't very helpful but gave enough information to know the variables were affected.

source: "{{item.url }}"
should be
source: "{{ item.source }}"

loop:\n - { name: 'example', url: 'git+https://github.com/example' }
should be
loop:\n - { name: 'example', source: 'git+https://github.com/example' }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions