我正在学习Ansible,并且从shell模块中收到以下警告,但无法修复(我确实尝试按照警告的建议声明类型为bool) 您能帮我理解此警告消息吗?
警告消息:
org.springframework
这是我的任务:
[DEPRECATION WARNING]: evaluating {'stderr_lines': [], u'changed': True, u'end': u'2019-12-06 03:00:22.120779', 'failed': False, u'stdout': u' xxxx.fr', u'cmd': u"pcs config | grep 'Pacemaker
Nodes:' -A1 | tail -1 | grep xxxx.fr", u'rc': 0, u'start': u'2019-12-06 03:00:21.786650', u'stderr': u'', u'delta': u'0:00:00.334129', 'stdout_lines': [u' xxxx.fr'],
'failed_when_result': False} as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version
2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.