Practical Ansible configuration management from start to finish
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 fro...
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
New York, New York :
Apress L. P.
[2022]
|
Edición: | Second edition |
Colección: | ITpro collection
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009686277006719 |
Tabla de Contenidos:
- 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
- Using Molecule with Code Deployed to AWS
- Update Tests to Match Our AWS Instance
- CICD with TravisCI
- Using AWS on TravisCI
- Summary
- 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
- Summary
- Index.