3
私は通常、失敗したタスクの結果(register: result
)の中にfailed: true
がセットされていることがわかりました。失敗したジョブを再試行する一般的な方法はありますか?
しかし、これは成功したタスクのためにfailed: false
を設定しないので、私はuntil: not result.failed
を使用できません。
これは、私は、これは動作するはずだと思います:
until: 'failed' not in result or not result.failed
restries: 3
delay: 30
ので、これが唯一のジェネリック方法ansibleタスクを再試行しているのですか?