ansible-bundler
ansible-bundler copied to clipboard
"Unexpected Exception" while using digits for name tasks in role
Hi. How to repeat:
- Create role with ansible-galaxy
- Create any task
- 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
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"
This is the problem of the bundler, because the ansible works out this playbook without errors
If that's the case I'll reopen it so I can test this later. Have you tried the workaround I mentioned?
When using string, it solve problem
I'm closing this again since it's not an ansible-bundler issue.