私はpastebin https://pastebin.com/embed_iframe/3tzVPm6Dにvar出力を持っていますが、その中の強調表示された値にアクセスしたいのですが、下のyamlはそれを達成するのに正しいですか?私はあなたがdescribed in documentationとして、with_subelements
建設を使用したい場合があり次のタスクにVar結果を使用
{"failed": true, "msg": "'list object' has no attribute 'files'
win_service: name: "{{item.filename.split('.')[0]}}" path: "{{item.path}}" #state: absent with_items: - "{{exepath.results.files}}"
あなたのアプローチは間違っています。 'results'のすべての結果からハイライトされた値(単一ファイル)または'ファイル 'のファイルのみが必要ですか? –
ファイルからすべてのファイル、基本的に私は以前の仕事からこれを収集しています – windowws