I have just noticed by accident and a lot of sweat that the action “Run all Ansible roles” from the “Select Action” dropdown on the Host page does in fact immediately run all ansible roles with not further confirmation.
That is really evil. We have a few hosts on which we initially run some ansible roles to install a pacemaker cluster, but then made changes on the cluster directly. Running ansible roles would mean it would revert all our changes. (I know, we should keep the variables in foreman up-to-date, but we hardly use ansible thus we aren’t there, yet).
For all other actions (I think) you have to enter some information or confirm the action, but not for run all ansible roles. This is very bad it you want to schedule a remote job and accidentally slip the mouse button just the line above.
There should be a confirmation dialog (possibly given more information about which roles would run on which of the selected hosts) before it’s actually done.
Foreman 3.11.1 on AlmaLinux 8