2 ms·
Use ansible. It's like shell scripts on steroid. Basically, imagine a list of simple tasks, executing one by one in order. Instead of having bash commands whi
by user5994461 10y ago
Use ansible. It's like shell scripts on steroid.
Basically, imagine a list of simple tasks, executing one by one in order.
Instead of having bash commands which have crazy long arguments list and screw the whole script on failure, you get to use ansible commands (aka. modules) which are a lot easier to use and handle failures nicely (by stopping the run).
And you'll never have to worry again about what happens when a command is ran twice. It simply doesn't do anything if there is nothing to change.