0
この出力でパス変数をターゲットにしたいと思っています。アシスタント - アイテムをターゲットする方法
ok: [myMachine1] => {
"foundFiles": {
...
"results": [
{
...
"files": [
{
...
"path": "/my/first/path",
...
}
],
},
{
...
"files": [
{
...
"path": "/my/second/path",
...
}
}
]
}
}
「パス」変数をターゲットに設定するにはどうすればよいですか。 私がしようとしている:
- debug:
msg: "{{ item.files.path }}"
with_items:
- foundFiles.results
しかし、唯一の"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'unicode object' has no attribute 'key'
感謝の第一人者年代を取得。