随笔分类 - Ansible
摘要:Ansible通过jinja2模块对后缀为.j2的文件进行jinja模板渲染,某一次在引用一个类似python dict的配置文件变量时报出了如上错误。 这里直接参考一个ansible github issue中的示例进行解释: "AnsibleUndefinedVariable: 'unicode
阅读全文
摘要:关于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
阅读全文