IppSec / parrot-build

Ansible Scripts to Build Out My Parrot
184 stars 99 forks source link

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

Open crypticredux opened 1 year ago

crypticredux commented 1 year ago

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