Hi Matt, In YAML, you can use a ~ or the lower-case string null to set the equivalent of a python None.
On Mon, Dec 1, 2014 at 10:51 PM, Matt Ferrante <[email protected]> wrote: > Is there a way to set a variable to None? I end up with the string, "None" > every time. > > The ec2_lc module passes instance_profile_name along to boto's > LaunchConfiguration method. Setting instance_profile_name to something > works, but I am unable to set the default value for it, None. It doesn't > like False or the empty string. If there isn't a way to set something to > null, I have created a fix as part of this pull request as a workaround: > > https://github.com/ansible/ansible-modules-core/pull/58 > > Thanks, > - Matt > > -- > 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/714a0549-634c-444b-9e41-c2645523635c%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/714a0549-634c-444b-9e41-c2645523635c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAMFyvFjOdtuzAmW6bB3X5kcwN4CAg__cnaO%3DLrdX1kr-h-pPBg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
