On 10.12.2018 23:26, Stuart Longland wrote:
encrypted: "{{hostvars[item].get('encrypted','false') == 'true'}}"
        volume_size: "{{hostvars[item].get('volume_size',100) | int}}"
        volume_type: "{{hostvars[item].get('volume_type','gp2')}}"

I got the same error.

I suspect that the integer is then getting cast *back* to a string
before being passed onto `boto3`, which is then barfing on it.

You could try to do it the Ansible way and not the Python way to see if that works.

  volume_size: "{{hostvars[item].volume_size | default(100) | int}}"

--
Kai Stian Olstad

--
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/e9e8a0bec9f24844e3138d8bb6f6259e%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to