3 ms·
This article doesn't do a very good job of stating it's thesis: The ansible version is no fewer lines than the shell script version; but requires you to underst
by jrochkind1 13y ago
This article doesn't do a very good job of stating it's thesis: The ansible version is no fewer lines than the shell script version; but requires you to understand ansible and how it works.
It doesn't seem preferable to me, from this example.
Note, I don't need to be convinced of the benefits of configuration management in terms of reproducibility and reliability. I'm just saying the OP's examples don't really make the case it suggests they make, of showing how ansible is so much easier than shell scripts. It does not appear to be.
- mpdehaan2 13y agoI think Matt did a pretty good job of showing how they were at about the same level of complexity for a new audience, but one of the things you don't see is that (A) there's error handling, (B) the system will only run commands as needed and of course using things like 'with_items' and 'notify' ends up making it a lot shorter. But yeah, most of Hacker News already has a read on that :)