TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ansible 2.0 released

265 pointsby tachionover 9 years ago

12 comments

loevborgover 9 years ago
Ansible is probably the single most useful tool for doing working with servers today. It somehow manages to be simple and very featureful at the same time. Personally, a good chunk of my effectiveness in workings with servers and cloud provisioning can be directly attributed to it.<p>I&#x27;ve been using pre-releases of 2.0 for a few months now, mainly for its improved support for AWS services like dynamodb and IAM policies. I&#x27;ve had nothing but good experience with the new version, which cleans up the code and brings more consistency. Working with AWS, ansible shows its strengths by exposing to the developer a simplified API which gets you 95% percent of the way -- pretty much what you wish you&#x27;d get from Amazon. I feel that ansible does cloud provisioning not just easier but better than most other tools, including Amazon&#x27;s Cloud Formation.<p>Ansible&#x27;s playbooks (recipes for provisioning servers or infrastructure) read like pseudo-code, and although it&#x27;s sometime not obvious how to write an idempotent playbook for a piece of software, it is always obvious what an ansible YAML file does (despite the obvious shortcomings of YAML for this job). This is important in the devops world: all knowledge about the infrastructure is codified in version-controlled ansible code and doesn&#x27;t get lost when the job passes to a new hire.<p>This also means that you can often find a playbook for software you want to deploy already written on github (search with &quot;language:yaml&quot;). Often you won&#x27;t be able to copy and paste it verbatim, but looking at how someone else has solved a problem (install java, configure apache, etc.), it will be obvious how to replicate it.<p>Every time I finish a piece ansible code, I smile -- about how many other tools can you say that? Congratulations to the team and all contributors for the new major release (and to the company for its well-deserved recent acquisition)!
评论 #10893046 未加载
评论 #10892133 未加载
matt_wulfeckover 9 years ago
Ansible and Salt were both huge steps forward for provisioning. However, after switching to immutable resources I&#x27;ve largely replaced the need for such services.<p>I don&#x27;t mind that there&#x27;s a panoply of bash scripts to configure docker builds. It&#x27;s simple and it works and nearly every engineer worth anything knows how to read and write them.<p>A good bash script never goes out of style.
评论 #10890775 未加载
评论 #10891845 未加载
评论 #10894310 未加载
评论 #10892790 未加载
oskarpearsonover 9 years ago
There are some good changes here:<p><a href="https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;ansible&#x2F;ansible&#x2F;stable-2.0&#x2F;CHANGELOG.md" rel="nofollow">https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;ansible&#x2F;ansible&#x2F;stable-2.0...</a><p>- Given the dynamic includes, you can use variables in some places you couldn&#x27;t before , which allows you to pass items in on an include.<p>- Error handling now uses a try&#x2F;catch structure with block&#x2F;rescue&#x2F;always, which is much clearer than capturing a &#x27;register&#x27; variable and handling it later<p>- It has a new &#x27;free running&#x27; mode, where operations can be run on remote hosts as fast as they can be processed, rather than at the speed of the slowest host<p>- Lots more cloud-oriented modules
skywhopperover 9 years ago
Love Ansible, but am I the only one who has found 2.0 to be unbearably slow? Some patterns I use may now be anti-patterns I should factor out, but even with some optimizations, I&#x27;m finding Ansible 2.0 to be 3-4x slower than 1.9. Maybe it has to do with # of hosts or variable field depth, but it&#x27;s really really depressing.
评论 #10890820 未加载
评论 #10892144 未加载
lifeisstillgoodover 9 years ago
I am starting with Ansible and pretty much my first thought was to write my own &quot;super&quot; python scripts that called Ansibke instead of using playbook and their DSL<p>But, is this a good idea? As the first six comments here are starting that discussion, what are the pros and cons?<p>The API may be rich but it feels a second class citizen. But DSLs are really hard to get right and often lack ... Everything.
评论 #10890672 未加载
评论 #10891021 未加载
hergeover 9 years ago
Man, I am really happy that playbook parsing and error reporting has been improved.<p>Almost all the frustrations I have had with ansible haven&#x27;t been from individual modules, but from the mini-language in playbooks defining what modules gets run when with what input variables. Almost pushed me to do away with playbooks entirely and just call ansible modules from a python script directly.
评论 #10890338 未加载
评论 #10890658 未加载
jasonrhaasover 9 years ago
Excited about the block functionality and the new execution strategies! I will definitely try them both out to see if I can optimize my Ansible code even further.
kyriakosover 9 years ago
I&#x27;d love windows support on the control side.
smegelover 9 years ago
I only skimmed over the release notes, but I hope they avoid adding too much complexity and keep it&#x27;s prized simplicity.
fnordoover 9 years ago
Really looking forward to getting into this but it doesn&#x27;t look like they&#x27;ve documented all the modules yet. Specifically I&#x27;m trying to find more information on the hashi_vault module
评论 #10890893 未加载
merbover 9 years ago
it would be great if rolling updates would work now..
评论 #10891367 未加载
bovermyerover 9 years ago
I was about to make some witty and intelligent comment about Ansible and its usefulness for cloud orchestration, and then I remembered that I&#x27;ve drank over half a bottle of wine and it&#x27;s time to pass out, so g&#x27;night.
评论 #10893961 未加载