State management is about a lot more than 'execute this command on a server' (which is discussed in the article). It's about creating a set of rules and performing idempotent actions.
If you're just running shell commands, it's easy to screw up and waste your time or break your server by accidentally having the same commands run twice.