You are previewing Ansible Configuration Management.
O'Reilly logo
Ansible Configuration Management

Book Description

Configuring your Linux infrastructure using Ansible is made logical and highly accessible when you follow this step-by-step tutorial. Combining a clear overview with the deeper details, it gives a solid grounding to managing your systems.

  • 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

  • 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.

    Table of Contents

    1. Ansible Configuration Management
      1. Table of Contents
      2. Ansible Configuration Management
      3. Credits
      4. About the Author
      5. About the Reviewers
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. Getting Started with Ansible
        1. Installation methods
        2. Installing from your distribution
        3. Installing from pip
        4. Installing from the source code
        5. Setting up Ansible
        6. First steps with Ansible
        7. Module help
        8. Summary
      9. 2. Simple Playbooks
        1. The target section
        2. The variable section
        3. The task section
        4. The handlers section
        5. The playbook modules
          1. The template module
          2. The set_fact module
          3. The pause module
          4. The wait_for module
          5. The assemble module
          6. The add_host module
          7. The group_by module
        6. Summary
      10. 3. Advanced Playbooks
        1. Running operations in parallel
        2. Looping
        3. Conditional execution
        4. Task delegation
        5. Extra variables
          1. The hostvars variable
          2. The groups variable
          3. The group_names variable
          4. The inventory_hostname variable
          5. The inventory_hostname_short variable
          6. The inventory_dir variable
          7. The inventory_file variable
        6. Finding files with variables
        7. Environment variables
        8. External data lookups
        9. Storing results
        10. Debugging playbooks
          1. The debug module
          2. The verbose mode
          3. The check mode
          4. The pause module
        11. Summary
      11. 4. Larger Projects
        1. Includes
          1. Task includes
          2. Handler includes
          3. Playbook includes
        2. Roles
        3. New features in 1.3
        4. Speeding things up
          1. Tags
          2. Ansible's pull mode
        5. Summary
      12. 5. Custom Modules
        1. Writing a module in Bash
        2. Using a module
        3. Writing modules in Python
        4. External inventories
        5. Summary
      13. Index