Ansible Configuration Management

Ansible Configuration Management
eBook: $20.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 15%!
Print + free eBook + free PacktLib access to the book: $55.98    Print cover: $34.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • Starts with the most simple usage of Ansible and builds on that
  • Shows how to use Ansible to configure your Linux machines
  • Teaches how to extend Ansible to add features you need
  • Explains techniques for using Ansible in large, complex environments

Book Details

Language : English
Paperback : 92 pages [ 235mm x 191mm ]
Release Date : November 2013
ISBN : 1783280816
ISBN 13 : 9781783280810
Author(s) : Daniel Hall
Topics and Technologies : All Books, Other, Open Source

Table of Contents

Chapter 1: Getting Started with Ansible
Chapter 2: Simple Playbooks
Chapter 3: Advanced Playbooks
Chapter 4: Larger Projects
Chapter 5: Custom Modules
  • Chapter 1: Getting Started with Ansible
    • Installation methods
    • Installing from your distribution
    • Installing from pip
    • Installing from the source code
    • Setting up Ansible
    • First steps with Ansible
    • Module help
    • Summary
    • Chapter 2: Simple Playbooks
      • The target section
      • The variable section
      • The task section
      • The handlers section
      • The playbook modules
        • The template module
        • The set_fact module
        • The pause module
        • The wait_for module
        • The assemble module
        • The add_host module
        • The group_by module
      • Summary
      • Chapter 3: Advanced Playbooks
        • Running operations in parallel
        • Looping
        • Conditional execution
        • Task delegation
        • Extra variables
          • The hostvars variable
          • The groups variable
          • The group_names variable
          • The inventory_hostname variable
          • The inventory_hostname_short variable
          • The inventory_dir variable
          • The inventory_file variable
        • Finding files with variables
        • Environment variables
        • External data lookups
        • Storing results
        • Debugging playbooks
          • The debug module
          • The verbose mode
          • The check mode
          • The pause module
        • Summary
        • Chapter 4: Larger Projects
          • Includes
            • Task includes
            • Handler includes
            • Playbook includes
          • Roles
          • New features in 1.3
          • Speeding things up
            • Tags
            • Ansible's pull mode
          • Summary

            Daniel Hall

            Daniel Hall started as a Systems Administrator at RMIT University after completing his Bachelor of Computer Science degree there in 2009. More recently, he has been working to improve the deployment processes at Like many System Administrators, he is constantly trying to make his job easier and easier, and has been using Ansible to this effect.
            Sorry, we don't have any reviews for this title yet.

            Code Downloads

            Download the code and support files for this book.

            Submit Errata

            Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


            - 4 submitted: last submission 21 Jan 2014

            Errata type: Code | Page number: 12

            The command: $ ansible machinename -m copy -a 'path=/tmp/fstab mode=0700 owner=root'

            Should be: $ ansible machinename -m copy -a 'src=/etc/fstab dest=/tmp/fstab'

            Errata type: Technical | Page number: 27

            Tomcat's init script returns immediately before opening the port. The Tomcat service opens the port before the Java application starts.

            Errata type: Code | Page number: 45

            The output line should read:    TASK: [Print interface] *************

            Instead of:   TASK: [Print IP address] *************

            Errata type: Layouts | Page number: 60

            The line "First, we( )installed"

            should be "First, we installed"

            Sample chapters

            You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

            Frequently bought together

            Ansible Configuration Management +    Joomla! 1.5 Cookbook =
            50% Off
            the second eBook
            Price for both: $33.45

            Buy both these recommended eBooks together and get 50% off the cheapest eBook.

            What you will learn from this book

            • Configure your systems and services with Ansible
            • Use Ansible command line tools to interrogate systems
            • Script Ansible to perform multiple actions with one command
            • Build maintainable configurations for large environments
            • Learn how and when to use advanced features of Ansible
            • Use an inventory that is dynamically generated
            • Understand the use of Ansible roles to split your configurations into logical parts
            • Extend the functionality of Ansible by writing your own module

            In Detail

            Ansible provides a clear and concise way to manage the configuration of your Linux infrastructure. It can help in making your infrastructure more maintainable, quicker to deploy, and easier to understand.

            "Ansible Configuration Management" will take you from your very first command all the way to extending the very capabilities of Ansible itself. It takes a practical approach with hands-on examples, which ensures that the readers walk away with all the knowledge and skills they will need to harness Ansible.

            "Ansible Configuration Management" starts with an explanation of the basics and builds the reader’s knowledge through step-by-step guidelines.

            The book concentrates on discussions related to realistic worked examples. Using this approach we discuss how to perform ad-hoc actions, script actions together to set up services, and how to script more complicated tasks. The discussion carries onto explanation of organising your configurations for large deployments and warps up with examples of how to extend the capabilities of Ansible.

            "Ansible Configuration Management" provides the knowledge you require to effectively manage your systems in a simple, quick, and maintainable way.


            "Ansible Configuration Management" is a step-by-step tutorial that teaches the use of Ansible for configuring Linux machines.

            Who this book is for

            This book is intended for anyone looking to understand the basics of Ansible. It is expected that you will have some experience of how to set up and configure Linux machines. In parts of the book we cover configuration files of BIND, MySQL, and other Linux daemons, therefore a working knowledge of these would be helpful but are certainly not required.

            Code Download and Errata
            Packt Anytime, Anywhere
            Register Books
            Print Upgrades
            eBook Downloads
            Video Support
            Contact Us
            Awards Voting Nominations Previous Winners
            Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
            Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software