Anyone?
I am considering posting this as a bug in ansible 1.8.
Op donderdag 15 januari 2015 18:19:56 UTC+1 schreef Ruben Oostinga:
>
> 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/b1305fe5-827d-4080-99f6-6450a5138086%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.