小编anu*_*uiq的帖子

Ansible:[DEPRECATION WARNING]:不推荐使用裸变量

我认为这是剧本中产生错误的部分.我该如何重写这部分内容?

roles: 
- role: json-transform
  json_transforms: '{{ clientValidation.json_transforms}}'
Run Code Online (Sandbox Code Playgroud)

它抛出以下警告:

[DEPRECATION WARNING]: Using bare variables is deprecated. Update your playbooks so that the environment value uses the full variable syntax ('{{json_transforms}}'). This feature will be removed in a 
future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
Run Code Online (Sandbox Code Playgroud)

ansible

11
推荐指数
1
解决办法
6856
查看次数

标签 统计

ansible ×1