Practical Ansible : configuration management from start to finish / Vincent Sesto.

Author
Sesto, Vincent [Browse]
Format
Book
Language
English
Εdition
Second edition.
Published/​Created
  • New York, New York : Apress L. P., [2022]
  • ©2022
Description
1 online resource (341 pages)

Details

Subject(s)
Series
ITpro collection
Summary note
Get ready to go from the basics of using Ansible to becoming proficient at implementing configuration management in your projects. This book begins with the basics of Ansible, providing you with details on how to install and configure your environment while working with different Ansible modules from the command line. Next, it introduces you to working with Ansible tasks and organizing configuration code into playbooks. You'll then learn how to extend playbooks further, using roles and templates within the configuration code. Author Vincent Sesto then extends your knowledge further by covering custom Ansible modules using Python and Linux shell scripts and demonstrating how you can start to keep your secret values encrypted and secure using Ansible Vault. You'll also develop Ansible roles with the use of Ansible Galaxy to reuse existing roles that others have created. This updated edition reflects changes added in the latest version of Ansible (2.9). It also includes an expanded chapter on testing Ansible using Molecule and managing large server environments using applications like Ansible Tower.
Notes
Includes index.
Source of description
Description based on print version record.
Contents
  • Intro
  • Table of Contents
  • About the Author
  • About the Technical Reviewer
  • Preface
  • Introduction
  • Chapter 1: Configuration Management with Ansible
  • Getting Started with Configuration Management
  • Why Ansible?
  • Getting Started with Ansible
  • Installing Ansible
  • Ansible Support for SSH
  • Finally, Our First Ansible Command
  • Basic Ansible Playbooks
  • Ansible Configuration and Inventory Files
  • Running Ansible Modules
  • Ping
  • Setup
  • Git
  • Shell
  • Apt (or Yum)
  • Package
  • Service
  • Get_url
  • File
  • User
  • Find
  • Running Ansible on Different Servers
  • Different Versions of Ansible
  • Ansible Projects
  • Basic LAMP Stack
  • Splunk Server Environment
  • Summary
  • Chapter 2: Ansible Playbooks
  • Ansible and YAML Syntax
  • Command-Line Modules to Ansible Playbooks
  • Ansible Playbook Verbose Output
  • Ansible Syntax in Finer Detail
  • Hosts and Remote Users
  • Tasks
  • Notify
  • Adding More Playbook Functionality with Variables and Loops
  • Plugging In Our LAMP Stack
  • Organizing Larger Playbooks with Include and Import
  • Chapter 3: Extending Playbooks with Roles and Templates
  • Ansible Roles
  • Creating the Web Server Role
  • Creating the Database Server Role
  • Ansible Command-Line Variables and Options
  • Expanding Our LAMP with Django
  • Conditional Tasks in Ansible
  • Using Tags to Run Specific Tasks
  • Chapter 4: Custom Ansible Modules, Vaults, and Galaxies
  • Keeping Secrets with Ansible Vault
  • Ansible Galaxy
  • Searching and Working with Ansible Galaxy Roles
  • Downloading and Installing Multiple Roles from Galaxy
  • Moving Further with Ansible Galaxy
  • Contributing to Ansible Galaxy
  • Building Your Own Ansible Modules
  • Chapter 5: Working with Ansible in the Amazon Cloud
  • So Why Amazon Web Services?
  • AWS Is Not Free
  • AWS Pricing
  • Gaining Access to AWS.
  • Using Environment Variables to Access AWS
  • Ansible AWS Modules to Implement Our New Project
  • Our New Splunk Implementation Project
  • Creating Our AWS Instance
  • Deploying Splunk with User Data
  • Failures on Amazon Web Services
  • Untitled
  • Chapter 6: Ansible Templates and CloudFormation Scripts
  • One Final Word on AWS Costs
  • Ansible Templates in AWS Instances
  • Pulling Code with Ansible
  • Ansible Pull GitHub Repository Deployment Explained
  • Build AWS Images for Quicker Deployments
  • Using CloudFormation with Ansible
  • Chapter 7: Ansible Troubleshooting and Variables
  • AWS Modules Run Differently
  • Using the Debug Module with Registered Variables
  • Ansible Facts
  • Ansible Galaxy README Files
  • Testing Ansible As You Develop
  • Ansible Start At Option
  • Ansible Step
  • Ansible Lint
  • List Ansible Tasks
  • Ansible Check Mode
  • Ansible Playbook Syntax Check
  • Ansible Connections Without SSH
  • Migrating to Ansible
  • Chapter 8: Testing Ansible with Molecule
  • Ansible Testing with the Molecule Testing Framework
  • Using Molecule with Code Deployed to AWS
  • Update Tests to Match Our AWS Instance
  • CICD with TravisCI
  • Using AWS on TravisCI
  • Chapter 9: Managing Large Server Environments
  • Managing Inventory and Hosts Files
  • Using Multiple Hosts Files
  • Using Ranges in Hosts Files
  • Adding Variables in Hosts Files
  • Working with Dynamic Inventory
  • Introducing Ansible Tower
  • Installing AWX Ansible Tower
  • Getting Started with AWX Ansible Tower
  • Main Dashboard
  • The AWX Ansible Tower Main Menu
  • Set Up Your Organization and Users
  • Introducing Projects
  • Setting Up a Project
  • Inventories and Hosts
  • Creating Templates for a Project
  • Running Your Job for a Project
  • Index.
ISBN
1-4842-8643-X
OCLC
1346150777
Doi
  • 10.1007/978-1-4842-8643-2
Statement on language in description
Princeton University Library aims to describe library materials in a manner that is respectful to the individuals and communities who create, use, and are represented in the collections we manage. Read more...
Other views
Staff view

Supplementary Information