官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 武鸣县| 井陉县| 瑞丽市| 井研县| 阳春市| 乌拉特中旗| 辉县市| 定襄县| 商都县| 大关县| 岱山县| 海宁市| 黎城县| 石家庄市| 犍为县| 江安县| 钟山县| 开阳县| 霍林郭勒市| 卢湾区| 扶沟县| 民勤县| 望城县| 佳木斯市| 二连浩特市| 财经| 崇仁县| 琼海市| 台北市| 常州市| 珲春市| 富川| 宁陕县| 江陵县| 两当县| 道真| 喀什市| 普安县| 盐亭县| 兰溪市| 阿合奇县|