Error detection in operationBook
The purpose of “operationBook” is to execute several operations one after the other. But what happens when an error occurs?
Sequence with a single host
- Create the file “./manifest.yaml” :
operations: # reading home directory files - command: “ls ~” # read the contents of this directory, generates an error, unless you have this directory on your server :) - command: “ls /xxxx9843efdsqf” # not executed, previous step stopped processing - command: “ls ~”
- Execution :
automation-cli run -ob "./manifest.yaml" -h "localhost"
- The first operation displays a result- The second produces an error- The third is not executed
Sequence with multiple hosts
When an operation is run on several hosts and an error occurs on one of them, the process continues for the others. The host on which the error was detected is simply removed from the execution pool.