kriansa / ansible-bundler

Turn Ansible playbooks into executable files
BSD 3-Clause "New" or "Revised" License
162 stars 21 forks source link

"Unexpected Exception" while using digits for name tasks in role #12

Closed ingvarrwvw closed 1 year ago

ingvarrwvw commented 3 years ago

Hi. How to repeat:

  1. Create role with ansible-galaxy
  2. Create any task
  3. Include task in tasks/main.yml like this:

    • name: 1 include_tasks: tasks/any_task.yml

    Create bundle and run it on target host:

PLAY [localhost] ***** ERROR! Unexpected Exception, this is probably a bug: argument of type 'int' is not iterable

kriansa commented 3 years ago

This has nothing to do specifically to ansible-bundler, but to ansible itself.

In yaml, you can force a number to be a string by wrapping it in quotes, have you tried it?

- name: "1"
ingvarrwvw commented 3 years ago

This is the problem of the bundler, because the ansible works out this playbook without errors

kriansa commented 3 years ago

If that's the case I'll reopen it so I can test this later. Have you tried the workaround I mentioned?

ingvarrwvw commented 3 years ago

When using string, it solve problem

kriansa commented 1 year ago

I'm closing this again since it's not an ansible-bundler issue.