Re: [ansible-project] set_fact adding unicode "[u' in front of new variable (2.3.1.0)

2017-06-21 Thread Alex White
Brian, thank you! Additional information provided by the IRC chan: Complex types get stringified using python's default representation. the [ is for start of list, and each string has u'...' denoting that it's a unicode string instead of set_fact: instance_id="expression", use set_fact: instan

Re: [ansible-project] set_fact adding unicode "[u' in front of new variable (2.3.1.0)

2017-06-21 Thread Brian Coca
"coreaid": [ "i-X" ] and [u'i-XXX'] are actually the same thing, just displayed differently. coreaid is a list, with a unicode string, which internally is represented as [u'i-XXX'], What you are seeing as 'correct' is JSONified output, that is why you see the difference. -

[ansible-project] set_fact adding unicode "[u' in front of new variable (2.3.1.0)

2017-06-21 Thread Alex White
I just recently updated to 2.3.1.0. I've used set_fact before the upgrade to set my AWS instance ID to a variable "coreaid". - name: Save instance ID to coreaid set_fact: coreaid: "{{ ec2_asg.instances }}" - debug: msg="the id= {{ coreaid }}" - name: Set the instance public IP to a var