未经书面许可,请勿转载

---

     Ansible is the simplest way to automate apps and IT infrastructure

这是Ansible官方站点的介绍,本着学习的态度我决定一边学习一边翻译Ansible configure management这本书。原文下载稍后放出

#一些自解释的文字,我会忽略。或者依照自己的理解简单翻译一下,并不是每行每句都是一一相应。

Preface
Since CFEngine was first created by Mark Burgess in 1993, configuration
management tools have been constantly evolving. Followed by the emergence
of more modern tools such as Puppet and Chef, there are now a large number of
choices available to a system administrator.
Ansible is one of the newer tools to arrive into the configuration management space.
Where other tools have focused on completeness and configurability, Ansible has
bucked the trend and, instead, focused on simplicity and ease of use.
In this book, we aim to show you how to use Ansible from the humble
beginnings of its CLI tool, to writing playbooks, and then managing large and
complex environments. Finally, we teach you how to extend Ansible by writing
your own modules.

前言

自从CFEngine 在1993年被Mark Burgess开发出来之后,配置管理工具就层出不穷了。像puppet 和chef。系统管理员能够有非常多选择。

Ansible 是一个新的配置管理工具,与其它工具不同的是,其它管理工具注重的是完整性和可配置性,而Ansible注重的是简单性和易用性。

What this book covers
Chapter 1, Getting Started with Ansible, teaches you the basics of Ansible, how to build
an inventory, how to use modules, and, most importantly, how to get help.
Chapter 2, Simple Playbooks, teaches you how to combine multiple modules to create
Ansible playbooks to manage your hosts.
Chapter 3, Advanced Playbooks, delves deeper into Ansible's scripting language and
teaches you more complex language constructs.
Chapter 4, Larger Projects, teaches you the techniques to scale Ansible configurations
to large deployments containing many complicated systems.
Chapter 5, Custom Modules, teaches you how to expand Ansible beyond its
current capabilities.

内容提要

第一章,開始使用Ansible,一些Ansible的基本信息和理念。比方怎样创建文件夹清单,怎样使用模块。以及最重要的怎样获得帮助。

第二章,简单的Playbooks演示样例,教你怎样使用多个Ansible模块创建Playbooks来管理你的主机。

第三章,高级Playbooks演示样例,深入了解Ansible的脚本语言。以及更复杂的语法结构。

第四章,大型项目演示样例,很多其它大规模Ansible配置的技巧,部署到很多其它更复杂的系统。

第五章,扩展自己定义模块,怎样自己自己定义去扩展自己的Ansible模块。超越它默认的功能。

What you need for this book
To use this book, you will need at least the following:
• A text editor
• A machine with Linux operating system
• Python 2.6.x
However, to use Ansible to its full effect, you should have several Linux machines
available to be managed.

怎样更好的使用本书

一个文本编辑器

2台以上linux机器

python2.6 及以上

Who this book is for
This book is intended for those who want to understand the basics of how Ansible
works. It is expected that you have rudimentary knowledge of how to set up and
configure Linux machines. In parts of the book, we cover the configuration files of
BIND, MySQL, and other Linux daemons; a working knowledge of these would be
helpful, but is certainly not required.

合适的读者

给那些愿意进一步了解Ansible工作原理的人。本书估计你对配置linux设备有一定的基础知识。在书中会举一些关于linux-mind、mysql等linux服务配置,假设你之前接触过这些配置会对你理解本书有帮助,但这些不是必须的!

Conventions
In this book, you will find a number of styles of text that distinguish between
different kinds of information. Here are some examples of these styles, and an
explanation of their meaning.
Code words in text are shown as follows: "We can include other contexts through
the use of the include directive."
A block of code is set as follows:
[group]
machine1
machine2
machine3
[ 2 ]Preface
When we wish to draw your attention to a particular part of a code block,
the relevant lines or items are set in bold:
tasks:
- name: install apache
action: yum name=httpd state=installed
- name: configure apache
copy: src=files/httpd.conf dest=/etc/httpd/conf/httpd.conf
Any command-line input or output is written as follows:
ansible machinename -u root -k -m ping
New terms and important words are shown in bold.

约定

PDF文档里面加粗的部分是作者希望读者进行练习的命令行。

inventory:设备库存清单文件,兴许的文档中有时候使用中文。有时候直接引用英文,感觉这个翻译过来真的非常别扭

action:操作,原文中有时候做任务、操作、甚至playbook,我也是有时候用中文,有时候直接引用英文

play:同上

Ansible@一个高效的配置管理工具--Ansible configure management--翻译(一)的更多相关文章

  1. Ansible@一个高效的配置管理工具--Ansible configure management--翻译(三)

    未经书面许可.请勿转载 一张图简单概括 Simple Playbooks Ansible is useful as a command-line tool for making small chang ...

  2. Ansible@一个高效的配置管理工具--Ansible configure management--翻译(五)

    无书面许可请勿转载 高级Playbook Extra variables You may have seen in our template example in the previous chapt ...

  3. Ansible@一个高效的配置管理工具--Ansible configure management--翻译(十一)

    无书面授权,请勿转载 第五章 自己定义模块 Using a module Now that we have written our very first module for Ansible, we ...

  4. Ansible@一个高效的配置管理工具--Ansible configure management--翻译(八)

    如无书面授权,请勿转载 第四章,大型项目中Ansible的使用 Roles If your playbooks start expanding beyond what includes can hel ...

  5. Ansible@一个高效的配置管理工具--Ansible configure management--翻译(七)

    如无书面授权,请勿转载 Larger Projects Until now, we have been looking at single plays in one playbook file. Th ...

  6. Ansible@一个有效的配置管理工具--Ansible configure management--翻译(四)

    不要未经书面许可转载 第三章是长,因为,我会分几个部分来翻译. Advanced Playbooks So far the playbooks that we have looked at are s ...

  7. Ansible@一个有效的配置管理工具--Ansible configure management--翻译(十二)

    如果没有书面授权,请勿转载 第五章 自己定义模块 External inventories In the first chapter we saw how Ansible needs an inven ...

  8. Ansible@一个有效的配置管理工具--Ansible configure management--翻译(十)

    未经书面许可,.请勿转载 Custom Modules Until now we have been working solely with the tools provided to us by A ...

  9. Ansible 运维自动化 ( 配置管理工具 )

    背景 出差背景,要搞项目的自动化部署.因为只直接对接生产分发,机器又非常多,这样以往使用的bat只能作为应急方案了,还是得考虑使用专业化的工具来做这个事情! 当下有许多的运维自动化工具( 配置管理 ) ...

随机推荐

  1. 使用SuperSocket打造逾10万长连接的Socket服务

    SuperSocket 是一个轻量级, 跨平台而且可扩展的 .Net/Mono Socket 服务器程序框架.你无须了解如何使用 Socket, 如何维护 Socket 连接和 Socket 如何工作 ...

  2. 特征提取算法的综合实验(多种角度比较sift/surf/brisk/orb/akze)

    一.基本概念: 作用:特征点提取在"目标识别.图像拼接.运动跟踪.图像检索.自动定位"等研究中起着重要作用: 主要算法: •FAST ,Machine Learning forHi ...

  3. Grafana+Prometheus系统监控之MySql

    架构 grafana和prometheus之前安装配置过,见:Grafana+Prometheus打造全方位立体监控系统 MySql安装 MySql的地位和重要性就不言而喻了,作为开源产品深受广大中小 ...

  4. RabbitMQ之工作队列

    工作队列 工作队列(又称:任务队列Task Queues)是为了避免等待一些占用大量资源.时间的操作,当我们把任务Task当做消息发送队列中,一个运行在后台的工作者worker进程就会取出任务然后处理 ...

  5. Xshell 的安装教程

    Xshell就是一个远程控制RHEL的软件:其他的还有很多,用什么都无所谓(根据公司情况). 下面我们来安装下这个工具: 双击exe 点下一步: 选 免费的 然后下一步:(免费的功能足够用了) 点接受 ...

  6. phpcms v9 sql注入脚本

    phpcms v9 SQL注入脚本 用法:python phpcms.py http://www.baidu.com import requests,sys,urllib url = sys.argv ...

  7. Python 简单理解多线程

    进程,是一个或多个线程的集合,每个进程在内存中是相对独立的. 线程,是计算机最小的运算单元,每个进程至少要有一个线程,多个线程时,每个线程间之间共享内存. 分别举例常规运行和多线程运行: 0)常规运行 ...

  8. [最短路]P1828 香甜的黄油 Sweet Butter

    题目描述 农夫John发现做出全威斯康辛州最甜的黄油的方法:糖.把糖放在一片牧场上,他知道N(1<=N<=500)只奶牛会过来舔它,这样就能做出能卖好价钱的超甜黄油.当然,他将付出额外的费 ...

  9. Maven引入jar的总结

    Overview:显示maven项目的一些基本信息 Dependencies:添加jar包的页面 Plugins:添加maven插件的页面.比如tomcat-maven-plugin等 Reporti ...

  10. 【续】抓个Firefox的小辫子,jQuery表示不背这黑锅,Chrome,Edge,IE8-11继续围观中

    引子 昨天我发了一篇文章[抓个Firefox的小辫子,围观群众有:Chrome.Edge.IE8-11],提到了一个Firefox很多版本都存在的问题,而相同的测试页面在Chrome.Edge.IE8 ...