Ansible: Up and Running: Automating Configuration Management by Lorin Hochstein

Posted by

By Lorin Hochstein

One of many configuration administration instruments on hand, Ansible has a few certain merits - it is minimum in nature, you don't want to put in something in your nodes, and it has a simple studying curve. This functional consultant indicates you ways to be effective with this instrument speedy, no matter if you are a developer deploying code to creation or a procedure administrator searching for a greater automation resolution. writer Lorin Hochstein exhibits you ways to jot down playbooks (Ansible's configuration administration scripts), deal with distant servers, and discover the tool's genuine strength: integrated declarative modules. you will discover that Ansible has the performance you would like and the simplicity you want.

Show description

Read Online or Download Ansible: Up and Running: Automating Configuration Management and Deployment the Easy Way PDF

Similar design & architecture books

Web caching and its applications

The decade has obvious super development in utilization of the area extensive net. net caching is a know-how aimed toward decreasing the transmission of redundant community site visitors and enhancing entry to the net. the major proposal in net caching is to cache often- accessed content material in order that it can be used profitably later.

Quality of experience for multimedia : application to content delivery network architecture

In response to a convergence of community applied sciences, the following iteration community (NGN) is being deployed to hold top of the range video and voice facts. in reality, the convergence of community applied sciences has been pushed via the converging wishes of end-users. The perceived end-to-end caliber is likely one of the major ambitions required through clients that has to be assured by means of the community operators and the web carrier services, via producer apparatus.

Machine Learning Control – Taming Nonlinear Dynamics and Turbulence

This can be the 1st textbook on a commonly acceptable regulate procedure for turbulence and different complicated nonlinear platforms. The process of the e-book employs strong tools of computing device studying for optimum nonlinear keep an eye on legislation. This computer studying keep watch over (MLC) is inspired and exact in Chapters 1 and a couple of.

Extra resources for Ansible: Up and Running: Automating Configuration Management and Deployment the Easy Way

Sample text

Local/bin. Some Ansible plug-ins and modules might require additional Python libraries. git --recursive If you’re running Ansible from the development branch, you’ll need to run these commands each time to set up your environment variables, including your PATH variable so that your shell knows where the ansible and ansible-playbooks programs are. /hacking/env-setup For more details on installation see: • Official Ansible install docs • Pip • Virtualenv • Pipsi Setting Up a Server for Testing You’ll need to have SSH access and root privileges on a Linux server to follow along with the examples in this book.

V. info Anatomy of a Playbook Let’s take a look at our playbook from the perspective of a YAML file. Here it is again, in Example 2-6. Example 2-6. html mode=0644 - name: restart nginx service: name=nginx state=restarted In Example 2-7, we see the JSON equivalent of this file. Example 2-7. html mode=0644" }, { "name": "restart nginx", "service": "name=nginx state=restarted" } ] } ] A valid JSON file is also a valid YAML file. This is because YAML allows strings to be quoted, considers true and false to be valid Booleans, and has inline lists and dictionary syntaxes that are the same as JSON arrays and objects.

Yml Example 2-5 shows what the output should look. Example 2-5. cfg file. [defaults] nocows = 1 If you didn’t get any errors,2 you should be able to point your browser to http://local host:8080 and see the custom HTML page, as shown in Figure 2-2. yml 2 If you encountered an error, you might want to skip to Chapter 14 for assistance on debugging. info | 27 What’s This “Gathering Facts” Business? You might have noticed the following lines of output when Ansible first starts to run: GATHERING FACTS ************************************************** ok: [testserver] When Ansible starts executing a play, the first thing it does is collect information about the server it is connecting to, including which operating system is running, hostname, IP and MAC addresses of all interfaces, and so on.

Download PDF sample

Rated 4.67 of 5 – based on 45 votes