【发布时间】:2020-01-27 09:14:21
【问题描述】:
我正在尝试使用 ansible 将我的 yaml 文件转换为属性文件。 我有这样的 yaml 文件
class: tenth
hobbies: playing
name:
first.last: jake.l
我需要将上面的 yaml 行转换为属性文件。 喜欢,
class = tenth
hobbies = playing
name.first.last = jake.l
有人可以帮忙
【问题讨论】:
我正在尝试使用 ansible 将我的 yaml 文件转换为属性文件。 我有这样的 yaml 文件
class: tenth
hobbies: playing
name:
first.last: jake.l
我需要将上面的 yaml 行转换为属性文件。 喜欢,
class = tenth
hobbies = playing
name.first.last = jake.l
有人可以帮忙
【问题讨论】:
Here 就是一个例子。从你说的我猜应该是这样的
user.class=tenth
user.hobbies=playing
user.name.first_last=jake.l
【讨论】: