- Ansible 2 Cloud Automation Cookbook
- Aditya Patawari Vikas Aggarwal
- 293字
- 2021-06-24 18:43:34
Introduction
Ansible is a modern automation tool that makes our lives easier by helping us manage our servers, deployments, and infrastructure. We declare what we want and let Ansible do the hard work. Some of the things that Ansible can do are as follows:
- Install and configure software
- Manage users and databases
- Deploy applications
- Remote execution
- Manage Infrastructure as Code
We will focus on the Infrastructure as Code part of Ansible for a significant part of this book.
Ansible has certain distinct advantages over other similar tools.
- Ansible is agentless. So we do not need to install any software on the servers that are to be managed. It does require Python runtime on the servers and a SSH server on remote hosts.
- Ansible supports both push and pull modes. So we can execute Ansible code from a central control machine to make changes on remote machines or the remote machines can pull configuration from a well defined source periodically.
- Code for Ansible is written in YAML (http://yaml.org/), which stands for YAML Ain't Markup Language. Ansible did not create and manage a language (or DSL) from scratch. YAML is easy to read, write, and understand. This makes up most of Ansible code's self documentation and reduces the learning curve of Ansible significantly.
- Ansible does not try to re-invent the wheel. Hence it uses SSH as a transport and YAML as a Domain Specific Language (DSL). In typical cases, there are two entities involved, a system (A) where the playbook execution is initiated, and another system (B), usually remote, which is configured using Ansible:

In a nutshell, Ansible helps to manage various components of servers, deployments and infrastructure in a repeatable manner. Its self-documenting nature helps with understanding and auditing true nature of infrastructure.
推薦閱讀
- 零起步輕松學(xué)單片機(jī)技術(shù)(第2版)
- 高性能混合信號(hào)ARM:ADuC7xxx原理與應(yīng)用開(kāi)發(fā)
- Hands-On Neural Networks with Keras
- SharePoint 2010開(kāi)發(fā)最佳實(shí)踐
- Silverlight 2完美征程
- 中文版AutoCAD 2013高手速成
- Mastering OpenStack(Second Edition)
- PowerPoint 2010幻燈片制作高手速成
- 教育創(chuàng)新與創(chuàng)新人才:信息技術(shù)人才培養(yǎng)改革之路(四)
- MySQL Management and Administration with Navicat
- 巧學(xué)活用Photoshop
- SolarWinds Server & Application Monitor:Deployment and Administration
- 歐姆龍CP1系列PLC原理與應(yīng)用
- 網(wǎng)絡(luò)規(guī)劃與設(shè)計(jì)
- 多媒體技術(shù)應(yīng)用教程