2024-10-01 11:26:01 发布
网友
使用Ansible,to_yamljinja过滤器,我想生成以下YAML编码的字符串:
to_yaml
data: | hello: world bonjour: monde
例如:
- set_fact: my_data: data: | hello: world bonjour: monde - debug: msg: "{{ my_data | to_nice_yaml }}"
给予
{ - msg: data: 'hello: world bonjour: monde ' }
目前没有回答
目前没有回答
相关问题 更多 >
编程相关推荐