Hi,
I am currently upgrading from ansible 1.7 to 1.8 and my current playbooks
are not working anymore. I have batch_size defined in a vars_file and I
would like to use this as my serial size.
My playbook looks like this:
---
- hosts: 127.0.0.1
serial: "{{ batch_size }}"
vars_files:
- params/{{ env }}/params.yml
And the error is:
ValueError: invalid literal for int() with base 10: '{{ batch_size }}'
I tried also tried using group vars, same issue.
This also works
vars:
batch_size: 2
But this didn't
vars_files:
- params/{{ env }}/params.yml
vars:
batch_size_var: "{{ batch_size }}"
Using the -e flag works but I want to keep the variable next to my other
variables in params.yml.
I currently changed everything to serial: 50%, but there should be better
solution.
What am I doing wrong?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/9d8aa835-16a0-4410-99f3-8e9309e62d9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.