Ansible is a simple, but powerful, server and configuration management tool (with a few other tricks up its sleeve). This book will help those familiar the command line and basic shell scripting start using Ansible to provision and manage anywhere from one to thousands of servers.
The book begins with fundamentals, like installing Ansible, setting up a basic inventory file, and basic concepts, then guides you through Ansible's many uses, including ad-hoc commands, basic and advanced playbooks, application deployments, custom modules, and special cases like running ansible in 'pull' mode when you have thousands of servers to manage (or more). Everything is explained with pertinent real-world examples, often using Vagrant-managed virtual machines.
I was given this book, which is an uncommon event for me as I usually buy all books by myself. Moreover, I was given a paper version of the book.
Therefore, there were absolutely no regrets regarding this book =) The book is concise and covers almost all parts of Ansible I’ve ever heard of. The only exception was the case when you need to deal with a server that’s under a jump host/bastion, which is very common for cloud deployments as they usually are done in a VPC network of some kind that not exposed to the outer world.
This book has plenty of handful examples, but the most useful thing in it were not them. The book covers some of the most undervalued parts of the Ansible ecosystem: Ansible Galaxy, Tower and it also has a decent set of invaluable pattern and best practices for writing your playbooks.
My score: 5/5, I’m not sure if you need to read anything more than this book if you plan to use Ansible professionally.
I picked up the book expecting it to be an advanced book and boy did it deliver. It went so far that some solutions where like "why would someone even think to do it like this"; but it is what it is.
Ansible For DevOps очень и очень порадовала. Автор обстоятельно подошёл к делу. Первым делом там даётся ссылка на репозиторий git, где можно совершенно невозбранно скачать все примеры кода. Ничего не надо переносить руками из книги в текстовый редактор, что крайне удобно. Ещё один просто-таки жирующий плюс, что все примеры очень практические. При желании их можно использовать в реальном окружении с небольшими доработками. Но автору и этого мало! Помимо основного репозитория, у него по книге есть ссылки на дополнительные. В частности, где он разместил простейшие приложения на Ruby или NodeJS, чтобы отработать деплой с помощью Ansible, интеграционные тесты и многое другое. Помимо этого, автор загрузил весьма много примеров в Ansible Galaxy. Почти все примеры тоже рабочие, довольно сложные и их тоже можно применять в реальной практике. Тамошние плейбуки покрывают не только написание ролей, но и реальный продакшен. А ещё всякий там Green/Blue deployment, zero downtime, раскатку софта, находящегося за балансировщиком нагрузки и вот это всё.
Покрытие тем в книге крайне обширное. От простых плейбуков и развёртывания классического окружения с двумя серверами приложений и БД, до кластера ELK или Kubernetes. Посмотрите репозиторий, полезного там довольно много. Разбирайся — не хочу.
Автор не поленился и даже подготовил на каждый случай Vagrantfile, поэтому самостоятельно с ноля разворачивать виртуальные машины не придётся. Мало того, им же были подготовлены образы Vagrant специально для книги. Лепота да и только! Моё уважение, в общем. Все бы так писали книги. Единственный прокол здесь, это глава про dynamic inventories. Для демонстрации подхода, был выбран DigitalOcean. Вот только роли, связанные с деплоем дроплетов в DigitalOcean, уже успели сильно устареть и там, фактически, всё надо писать с нуля. Этот кусок книги пока пришлось мне отложить на будущее, поскольку сейчас мне не актуально и есть другие приоритеты. Есть ещё примеры для AWS, но их я не проверял.
Поскольку место ограничено, а рассказать хочется много, некоторые моменты даны вскользь. Так-то тестирование, CI/CD и отладка. Но автор для затравки даёт нам множество ссылок на материалы для самостоятельного изучения. А также имеется авторский блог, где тоже можно найти массу полезного.
В отличие от первой книги Mastering Ansible, её реально можно рекомендовать всем, кто изучает Ansible. Те, кто его знают, причешут и структурируют знания. Новички — узнают крайне много нового и сразу же могут начать писать своё. Обилие примеров на самый разный вкус тому способствуют.
Я могу сказать, что не пожалейте денег на хороший труд. Автор это честно заслужил.
Practical ("real-world playbooks"), properly structured, far better than mindless copying of on-line 101 tutorials (like the majority of books on similar topics). Developer-friendly and easy to follow. Covers all key topics - starting with managing the inventory, variable parts & secrets, ending with cases like "floating" deployment & rolling certificates.
Why not 5 stars then? The author has recently decided to exclude a hot topic into a separate book (K8s integration, there's just a brief chapter left), in general - the ecosystem integration chapter feels the least "complete" (or at least satisfactory - as it can never be "complete"). I missed a chapter on the best practices or most common errors. At least there's a short one on troubleshooting (e.g. using debug, fail, assert). I've also got disappointed with the testing - serverspec is mentioned but not covered at all.
In general - it's really a decent book. Not perfect, but still worth reading - 4-4.25 stars.
Unfortunately, it seems that I spent most of my time getting side tracked by proof-reading, and troubleshooitng incorrect or incomplete instructions. This was an extremely frustrating distraction from what, initially, appeared to be a solid curriculum.
By the time I got about halfway through the exercises, I found myself distrusting the instructions and expecting the code to fail on the first try. Most times, unfortunately, I was correct in my expectations.
I definitely would not recommend this book to a beginner or anyone who hasn't got a few years of solid Linux sysadmin experience under their belt.
The book has potential but really needs a professional editor and tester to verify the code. It is commendable that the author chooses to open/crowd-source this; but, to find so many egregious errors five years after its initial publication is frustrating, to say the least.
This is an easy and solid introduction to Ansible and getting up to speed on thinking about your infrastructure as code. Even if you are looking at other tools and technologies in this space, it would still be a good idea to read this book. Outside of the syntax specific to Ansible, the use cases, processes and guidelines presented are applicable to any tool looking to do infrastructure as code (IaC), DevOps, or CI/CD.
This book certainly covered more topics than I expected. It's a very comprehensive guide to Ansible for both beginners and intermediate users. The chapters separate the topic very well.
What in my opinion is lacking and I would love to know from this book is how to use Ansible + Terraform in a clean and maintainable way. Most examples in the book are done on local Vagrant VMs, in later chapters in Docker containers and there are also examples of provisioning Digital Ocean and AWS servers.
Recommended for folks who are starting out in ansible. Lays out how the technology came into being, how it is used and how it can be used in configuration management/application deployment.
I still think that Puppet is the better tool for configuration management, albeit with a higher learning curve. We will see how the configuration management tools pan out in future.
I've relied on Jeff Geerling's Ansible roles for a while now and will keep doing so. I've probably learned as much peeking at them as I did from this book.
Still I appreciated an organized, comprehensive review of Ansible and I learned a few new things from the book (e.g. how to use Vagrant). Recommend for anyone getting into DevOps or web application development.
I originally read this book when I started using Ansible a couple of years ago, and I just re-read it as part of a review. It's an excellent overview of Ansible, and Jeff Geerling regularly updates it to keep it current.
Good start to anyone using ansible for DevOps. If you're a seasoned DevOps professional, I'd skim then skip to the back to the best practices section. These are great but I don't think it's worth the cost of the book alone. I'd still recommend
Well thought-out book that will help you level up with Ansible, especially if you are moving up from Chef or Puppet. Author is very responsive to user feedback, has a great YouTube channel, and keeps the book continually updated.
This book jumps into how to install/use Ansible and Vagrant without providing an overview of what Ansible is. Yes the book says that Ansible is a flexible configuration tool, what does that mean? More time should have been spent going into this and elaborating on technologies used in the book.
Solid foundation and practical examples for using Ansible in your projects. If you're not sure where to start -- start here. Should give you everything you need.
A very good introduction to Ansible. Easy to understand yet deep enough. I think it's a very good complimentary of the Ansible documentation, which is also surprisingly good.
Contiene molti utili esempi di cosa si possa fare con Ansible, è ben organizzato e copre diversi casi nuovi e interessanti.
Il problema è che le spiegazioni sono spesso scritte male, poco chiare o poco approfondite. A volte sembra scritto per qualcuno che conosce già Ansible e cerca solo qualche idea per usarlo.
Ansible for Devops is a collection of explained examples of playbooks by the author. In the process he explains the workings of ansible and how it connects with other tools. A fan of Ansible myself, I knew most of what was written already but learned some new things as well. As the book matures and gains new chapters (like the one on CI/CD), it becomes better and better. Good job Mr Geerling!
Хорошая книга, с подробными и, что главное, понятными объяснениями и вполне себе жизненными примерами. Хотя в основном про вэб, и т.д. Для новичков, вроде меня, в самый раз.
Already changed how I automate my production machines. Every chapter has a nugget even an experience user would fine interesting. The Best Practice appendix should be a required chapter.