摘要:
Ansible通过jinja2模块对后缀为.j2的文件进行jinja模板渲染,某一次在引用一个类似python dict的配置文件变量时报出了如上错误。 这里直接参考一个ansible github issue中的示例进行解释: "AnsibleUndefinedVariable: 'unicode 阅读全文
posted @ 2021-02-23 16:16
realcp1018
阅读(2436)
评论(0)
推荐(0)
摘要:
关于run_once和when: when Conditional expression, determines if an iteration of a task is run or not. run_once Boolean that will bypass the host loop, for 阅读全文
posted @ 2021-02-23 15:06
realcp1018
阅读(1488)
评论(0)
推荐(0)