- Browse
- » Practical Ansible: configuration management from start to finish
Practical Ansible: configuration management from start to finish
Author
Publisher
Apress
Publication Date
2022.
Language
English
Description
Loading Description...
More Details
ISBN
9781484286432
148428643
148428643
Table of Contents
From the eBook - Second edition.
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
Summary
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
Summary
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
Summary
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
Summary
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
Summary
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
Summary
Chapter 8: Testing Ansible with Molecule
Ansible Testing with the Molecule Testing Framework
Excerpt
Loading Excerpt...
Author Notes
Loading Author Notes...
Reviews from GoodReads
Loading GoodReads Reviews.
Staff View
Loading Staff View.