Actions should be repeatable on failure or any other unwanted state
Description
Right now, only the mod_msf
can repeat a failed exploit.
It would be much better if the user could specify that an action (Step) is repeatable N times in case the result is X.
Use Case
An action ends up in the wrong state (fail/-1), but the user knows it should succeed, and the command/action he executed is just unstable.
Benefits
This would give the user much more freedom and trust in the execution.
We would gain the option to repeat every job/action and not just the mod_msf
since the implementation would be the same for every action.
Additional Information
Possible final result:
# Step
- name: repeatable-action
retry: 3