Ansible Configuration Management by Daniel Hall

By Daniel Hall

Leverage the ability 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 good points akin to looping, conditional executions, and job delegations
  • Explore the functions of Ansible from uncomplicated to extra complicated themes with assistance from this step by step guide

Who This ebook Is For

This e-book is meant for someone who desires to examine 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'll Learn

  • Manage your home windows machines with Ansible
  • Use Ansible's command-line instruments to interrogate systems
  • Interact with modules and set up cloud infrastructures
  • Process facts inside of Ansible and expand the performance of Ansible
  • Learn easy methods to shop secrets and techniques in Ansible's vault and detect different resource code administration techniques
  • Build maintainable configurations for big environments
  • Write customized Ansible plugins efficiently
  • Extend the performance of Ansible by way of writing your personal modules

In Detail

Ansible is an open resource software program platform for configuring and dealing with pcs. It presents a transparent and concise solution to deal with the configuration of your Linux infrastructure. This ebook is a step by step consultant that offers you with the information you require to successfully deal with your structures in an easy, fast, and maintainable method, with real-world examples.

You will start through studying the fundamentals of Ansible after which circulate directly to exploring extra complicated issues. you'll then study the elemental and intricate operations of playbooks and engage with modules to regulate home windows machines and set up them. additionally, you will get accustomed to Ansible's extra complicated positive aspects similar to serially updating machines, delegating initiatives to different machines, complex makes use of of variables, looping and prerequisites, copying complete directories, and utilizing filters to method variables. in the direction of the tip of the e-book, you'll the best way to bring up the performance of Ansible itself by way of writing your individual modules and plugins.

Show description

Read Online or Download Ansible Configuration Management PDF

Best linux books

Linux Smart Homes For Dummies

A Linux clever house is approximately controlling and tracking units and knowledge round your place utilizing a typical pc, Linux, and its titanic array of open resource instruments. You don't must be a grasp programmer to create one. for those who wish to tinker with Linux, "Linux shrewdpermanent houses For Dummies" will consultant you thru cool domestic automation tasks which are as a lot enjoyable to paintings on as they're to exploit.

Ubuntu Linux secrets

Сами авторы, Брайан Керниган и Роб Пайк, пишут в предисловии: "Наша задача - показать философию программирования под UNIX. Поскольку эта философия базируется на отношениях между программами, мы должны большую часть этой книги посвятить обсуждению индивидуальных инструментов, но в контексте их совместного использования, в том числе и для построения новых программ.

Red Hat Linux Unleashed, 2nd edition

This finished reference is the one booklet a Linux consumer, programmer, or approach administrator will desire. The ebook takes the reader via set up and configuration, to complex programming and administrating/networking the procedure. in the course of the chapters, you are going to: comprehend the similarities and ameliorations among pink Hat Linux and UNIX; study the right kind startup and shutdown approaches to prevent harm to purposes and paintings; configure and construct your personal kernels to reinforce operations; attach and keep an eye on printers for various print instances and destinations; make the most of crimson Hat Linux backup and fix tactics, in addition to safety concerns, to make sure the life and defense of your paintings; contain extra humans in your server via setting up person money owed; comprehend the recent universal computer setting; and reap the benefits of assurance of the head 50 Linux instructions and utilities for greater potency.

Professional Linux Programming

This booklet is damaged into 4 fundamental sections addressing key themes that Linux programmers have to grasp: Linux nuts and bolts, the Linux kernel, the Linux laptop, and Linux for the WebEffective examples support get readers up to the mark with development software program on a Linux-based method whereas utilizing the instruments and utilities that give a contribution to streamlining the software program improvement processDiscusses utilizing emulation and virtualization applied sciences for kernel improvement and alertness testingIncludes valuable insights geared toward assisting readers know the way their functions code matches in with the remainder of the software program stackExamines cross-compilation, dynamic gadget insertion and elimination, key Linux initiatives (such as venture Utopia), and the internationalization features found in the GNOME laptop

Extra resources for Ansible Configuration Management

Example text

The facts available will be the ones applicable to the current host. Here, we show a playbook that will use the get_url option to download the configuration from a bunch of web servers. --- name: Fetch configuration from all webservers hosts: webservers tasks: - name: Get config get_url: dest: "configs/{{ ansible_hostname }}" force: yes url: "http://{{ ansible_hostname }}/diagnostic/config" delegate_to: localhost If you are delegating to the localhost, you can use a shortcut when defining the action that automatically uses the local machine.

If we have to end our path with a backslash, make it a double backslash, and the second one will be ignored. jpg" # \n becomes a new line 'C:\Users\Daniel\Documents\' # \' becomes ' Cloud Infrastructure modules Infrastructure modules allow us to not only manage the setup of our machines, but also the creation of those machines themselves. Apart from this, we can also automate much of the infrastructure surrounding them. This can be used as a simple replacement for services such as Amazon Cloud Formation.

The async keyword triggers Ansible to run the job in parallel, and its value will be the maximum time that Ansible will wait for the command to complete. The value of poll indicates to Ansible how often to poll to check if the command has been completed. If you wanted to run updatedb across an entire cluster of machines, it might look like the following code: - hosts: all tasks: - name: Install mlocate yum: name=mlocate state=installed - name: Run updatedb command: /usr/bin/updatedb async: 300 poll: 10 You will notice that when you run the previous example on more than five machines, the yum module acts differently to the command module.

Download PDF sample

Rated 4.96 of 5 – based on 24 votes