Hi, it is because to test wildfly_memory_settings.Xms you need to access wildfly_memory_settings first and it is not defined. Unfortunatellz zou cannot use defautl this way.
David Linux server specialist/Specialista na správu linuxových serverů www.karban.eu 2016-01-04 14:45 GMT+01:00 jepper <[email protected]>: > Hello all, please can someone help me explain why this jinja2 template > fail if I have not defined wildfly_memory_settings ? > > JAVA_OPTS="-Xms{{ wildfly_memory_settings.Xms | default('64m') }} -Xmx{{ > wildfly_memory_settings.Xmx | default('512m') }} -XX:MaxPermSize=256m > -verbose:gc -Djava.net.preferIPv4Stack=true" > > The error: fatal: [targetbox] => {'msg': "AnsibleUndefinedVariable: One or > more undefined variables: 'wildfly_memory_settings' is undefined", > 'failed': True} > > -- > 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/5ec331ce-6ac2-4c88-8281-39fe1499b570%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/5ec331ce-6ac2-4c88-8281-39fe1499b570%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/CAOBFM95Lmh69EOVCrKQqTjMUYU1KVAGUyQuo6Ez%3DqE5QEOD2%2BQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
