Download Ansible Configuration Management by Daniel Hall PDF

By Daniel Hall

Leverage the facility of Ansible to control your infrastructure efficiently

About This Book

  • Configure Ansible in your Linux and home windows machines effectively
  • Extend Ansible so as to add positive aspects comparable to looping, conditional executions, and job delegations
  • Explore the functions of Ansible from uncomplicated to extra complex issues with the aid of this step by step guide

Who This ebook Is For

This publication is meant for a person who desires to study Ansible ranging from the fundamentals. a few event of ways to establish and configure Linux machines and a operating wisdom of BIND, MySQL, and different Linux daemons is expected.

What you are going to Learn

  • Manage your home windows machines with Ansible
  • Use Ansible's command-line instruments to interrogate systems
  • Interact with modules and installation cloud infrastructures
  • Process info within Ansible and expand the performance of Ansible
  • Learn the right way to shop secrets and techniques in Ansible's vault and notice different resource code administration techniques
  • Build maintainable configurations for big environments
  • Write customized Ansible plugins efficiently
  • Extend the performance of Ansible through writing your personal modules

In Detail

Ansible is an open resource software program platform for configuring and handling pcs. It presents a transparent and concise strategy to deal with the configuration of your Linux infrastructure. This publication is a step by step consultant that gives you with the data you require to successfully deal with your structures in an easy, quickly, and maintainable means, with real-world examples.

You will commence by means of studying the fundamentals of Ansible after which circulate directly to exploring extra complex issues. you'll then study the elemental and intricate operations of playbooks and engage with modules to control home windows machines and install them. additionally, you will get accustomed to Ansible's extra complicated good points equivalent to serially updating machines, delegating projects to different machines, complicated makes use of of variables, looping and stipulations, copying complete directories, and utilizing filters to strategy variables. in the direction of the top of the publication, you'll find out how to elevate the performance of Ansible itself by means of writing your personal modules and plugins.

Show description

Read Online or Download Ansible Configuration Management PDF

Best linux books

Novell Cluster Services for Linux and NetWare

Have to configure or deal with Novell Cluster companies on NetWare, Linux or a combined setting? decide up a replica of the reputable reference consultant, Novell Cluster providers for Linux and NetWare. This booklet blends in-depth details with useful, genuine global examples to hide cluster prone configuration suggestions, backup necessities, cluster prone administration, and upgrading strategies.

Using Samba

A book/CD-ROM advisor to Samba management, with chapters on set up, configuration, and optimization, and fabric on fresh additions resembling integration with home windows NT domain names and the SWAT photo configuration software. is going during the laptop facet of install intimately, and offers examples for either home windows 95/98 and home windows NT, in addition to examples for universal Unix working structures reminiscent of Linux 2.

Setting Up LAMP

This is often THE e-book for site owners, builders, and IT departments trying to create refined web purposes with open-source applied sciences. developing Lamp teaches you the way to advance an entire net server answer from the floor up. you are going to how one can set up, configure, use, and combine all 4 LAMP components--Linux working procedure, Apache internet server, MySQL database supervisor, and Hypertext Preprocessor programming language.

Extra resources for Ansible Configuration Management

Sample text

We can utilize the register keyword in order to place the contents into a fact. When using the slurp module to fetch files, we should be wary of the file size. This module loads the entire file into memory, so using slurp with large files can consume all available RAM and cause our system to crash. Files also need to be transferred from the managed machine to the controller machine, and for large files, this could take a considerable amount of time. [ 35 ] Simple Playbooks Combining this module with the copy module provides a way to copy files between two machines.

You can also configure your own skip conditions that will only execute the module if they resolve to true. This can be handy if your servers use different packaging systems or have different filesystem layouts. It can also be used with the set_fact module to allow you to compute many different things. To skip a module, you can use the when key; this lets you provide a condition. If the condition you set resolves to false, then the module will be skipped. The value that you assign to when is a Python expression.

For example, we can grab the content of a file on one machine, register it as a variable, and then use the value on another machine. This allows us to make complex deployment mechanisms that will be impossible with the Ansible command alone. Additionally, since each module tries to be idempotent, we should be able to run a playbook several times and changes will only be made if they need to be. The command to execute a playbook is ansible-playbook. It accepts arguments similar to the Ansible command-line tool.

Download PDF sample

Rated 4.00 of 5 – based on 15 votes