Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow advanced commands after upload
The command module does not support advanced Bash operations such as pipes (|), redirections, or if conditionals. That’s why the use of the shell module is necessary in this case. My use case was: I need to restart a pacemaker resource after file upload and needed it to run only on node 1. "if [[ $(hostname) == 'node1' ]] && crm_mon -1 | grep 'my_resource'; then crm_resource --resource my_resource --restart; fi" Signed-off-by: Gabin LAURENT <[email protected]>
- Loading branch information