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

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

Open
crypticredux opened this issue Jul 31, 2023 · 0 comments

Comments

@crypticredux
Copy link

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' }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant