sys.stderr.write("DEPRECATION: include + with_items is unsupported/undocumented and will be removed in Ansible 1.5, it will likely not do what you think it does.\n")
utils.deprecated("include + with_items is an unsupported feature and has been undocumented for many releases because of this","1.5")
plugin_name=k[5:]
ifplugin_namenotinutils.plugins.lookup_loader:
raiseerrors.AnsibleError("cannot find lookup plugin named %s for usage in with_%s"%(plugin_name,plugin_name))
utils.deprecated("The 'when_' conditional is a deprecated syntax as of 1.2. Switch to using the regular unified 'when' statements as described in ansibleworks.com/docs/.","1.5")
if'when'inds:
raiseerrors.AnsibleError("multiple when_* statements specified in task %s"%(ds.get('name',ds['action'])))
when_name=x.replace("when_","")
@ -172,6 +175,10 @@ class Task(object):
# load various attributes
self.only_if=ds.get('only_if','True')
ifself.only_if!=True:
utils.deprecated("only_if is a very old feature and has been obsolete since 0.9, please switch to the 'when' conditional as described at http://ansibleworks.com/docs","1.5")
done.append(unicode(replacement))# Append replacement value
raw=raw[end:]# Continue with remainder of string
return''.join(done)
result=''.join(done)
ifresult!=raw:
importutils
utils.deprecated("Legacy variable subsitution, such as using ${foo} or $foo instead of {{ foo }} is currently valid but will be phased out and has been out of favor since version 1.2. This is the last of legacy features on our deprecation list. You may continue to use this if you have specific needs for now","1.6")