Learn Ansible automate your cloud infrastructure, security configuration, and application deployment with Ansible

Are you tired of manually deploying and managing your infrastructure and looking for ways to streamline your deployments, introduce consistency and collaboration, and save time? If so, then Learn Ansible is for you. Written by a DevOps practitioner and system administrator with 30+ years of experien...

Full description

Bibliographic Details
Main Author: McKendrick, Russ
Format: eBook
Language:English
Published: Birmingham, UK Packt Publishing Ltd. 2024
Edition:Second edition
Subjects:
Online Access:
Collection: O'Reilly - Collection details see MPG.ReNa
Table of Contents:
  • The wordpress role
  • Some facts
  • WordPress CLI installation
  • Creating the WordPress database
  • Downloading, configuring, and installing WordPress
  • WordPress plugins installation
  • Running the WordPress playbook
  • Summary
  • Further reading
  • Chapter 6: Targeting Multiple Distributions
  • Technical requirements
  • Debian and Red Hat
  • Multi-distribution considerations
  • The Stack Install role
  • The Stack Config role
  • The WordPress role
  • Adapting the roles
  • Operating system family
  • The Stack Install role
  • The Stack Config role
  • The WordPress role
  • Running the playbook
  • Summary
  • Further reading
  • Chapter 7: Ansible Windows Modules
  • Technical requirements
  • Launching a Windows server in Azure
  • Ansible preparation
  • The ping module
  • The setup module
  • The Windows Playbook roles
  • Enabling Windows features
  • Creating a user
  • Installing applications using Chocolatey
  • Information role
  • Running the Playbook
  • Summary
  • Further reading
  • Part 3: Network and Cloud Automation
  • Chapter 8: Ansible Network Modules
  • Manufacturer and device support
  • The collections
  • Summary
  • Further reading
  • Chapter 9: Moving to the Cloud
  • Technical requirements
  • An introduction to Microsoft Azure
  • Launching instances in Microsoft Azure
  • Preparing Ansible for Microsoft Azure
  • Reviewing the variables
  • The resource group task
  • The networking tasks
  • Bootstrapping WordPress
  • The site and host environment files
  • The secrets role
  • Other changes
  • Running the playbook
  • Summary
  • Chapter 10: Building Out a Cloud Network
  • Technical requirements
  • An introduction to AWS
  • Amazon VPC overview
  • Creating an access key and secret
  • Getting Ansible ready for targeting AWS
  • The AWS playbook
  • The playbook variables
  • The VPC role
  • The subnets role
  • The gateway role
  • The security group's role
  • Includes bibliographical references and index
  • Running the playbook
  • Summary
  • Further reading
  • Chapter 11: Highly Available Cloud Deployments
  • Technical requirements
  • Planning the deployment
  • Costing the deployment
  • WordPress considerations and high availability
  • The Playbook
  • The variables
  • EC2 configuration
  • The Playbook roles
  • Running the Playbook
  • Playbook run highlights
  • Terminating all the resources
  • Summary
  • Chapter 12: Building Out a VMware Deployment
  • Technical requirements
  • An introduction to VMware
  • The VMware REST modules
  • VMware REST appliance modules
  • VMware REST content modules
  • vCenter modules
  • Summary
  • Part 4: Ansible Workflows
  • Chapter 13: Scanning Your Ansible Playbooks
  • Technical requirements
  • Why scan your playbooks?
  • Docker overview and installation
  • Installing Docker Desktop on macOS
  • Installing Docker Desktop on Windows
  • Installing Docker Desktop on Linux
  • Exploring Checkov
  • Exploring KICS
  • Running the scan
  • Reviewing the results
  • Re-running the scan
  • Output files
  • Summary
  • Further reading
  • Chapter 14: Hardening Your Servers Using Ansible
  • Technical requirements
  • The scanning tools
  • OpenSCAP
  • WPScan
  • OWASP ZAP
  • The playbook
  • The common role
  • The Docker role
  • The WordPress roles
  • The scan role
  • The OpenSCAP role
  • Running the playbook
  • Summary
  • Chapter 15: Using Ansible with GitHub Actions and Azure DevOps
  • Technical requirements
  • GitHub Actions
  • Preparation
  • Understanding the GitHub Action workflow
  • Committing the code
  • Azure DevOps
  • Creating and configuring our project
  • Cloning the repository and uploading the code
  • The Azure DevOps pipeline
  • Summary
  • Further reading
  • Chapter 16: Introducing Ansible AWX and Red Hat Ansible Automation Platform
  • Technical requirements
  • Red Hat Ansible Automation Platform versus AWX
  • Ansible AWX.
  • Deploying and configuring the Ansible AWX Operator
  • Setting up our playbook
  • Running our playbooks
  • Terminating the Kubernetes cluster
  • Playbook considerations
  • Ansible AWX's advantages and disadvantages
  • Summary
  • Further reading
  • Chapter 17: Next Steps with Ansible
  • Technical requirements
  • Integrating with third-party services
  • Slack
  • Other integrations
  • Summary of third-party services
  • The Ansible playbook debugger
  • Debugging the task
  • Summary of the Ansible debugger
  • Some real-world examples
  • Automating a complex deployment
  • Combining Ansible and other tools
  • Summary
  • Index
  • Other Books You May Enjoy
  • Cover
  • Title Page
  • Copyright and Credits
  • Contributors
  • Table of Contents
  • Preface
  • Part 1: Introducing, Installing, and Running Ansible
  • Chapter 1: Installing and Running Ansible
  • Technical requirements
  • My story: part one
  • Ansible's story
  • What is Ansible?
  • Ansible, the software
  • Ansible versus other tools
  • Declarative versus imperative
  • Configuration versus orchestration
  • Looking at some code
  • My story: part two
  • Installing and running Ansible
  • Installing on macOS
  • Installing on Linux
  • Installing on Windows 11
  • Launching a virtual machine
  • An introduction to playbooks
  • Host inventories
  • Playbooks
  • Summary
  • Further reading
  • Chapter 2: Exploring Ansible Galaxy
  • Technical requirements
  • The Ansible release life cycle
  • The life cycle of a release
  • Introduction to Ansible Galaxy
  • What is a role?
  • Publishing to and using Ansible Galaxy roles
  • Publishing your roles to Ansible Galaxy
  • Using roles from Ansible Galaxy
  • Ansible collections
  • Ansible Galaxy commands
  • Summary
  • Further reading
  • Chapter 3: The Ansible Commands
  • Inbuilt commands
  • Ansible
  • The ansible-config command
  • The ansible-console command
  • The ansible-inventory command
  • What is ansible-pull?
  • Using the ansible-vault command
  • Third-party commands
  • The ansible-inventory-grapher command
  • Summary
  • Further reading
  • Part 2: Deploying Applications
  • Chapter 4: Deploying a LAMP Stack
  • Technical requirements
  • The playbook structure
  • The LAMP stack
  • The common role
  • The Apache role
  • The MariaDB role
  • The PHP role
  • The LAMP playbook
  • Summary
  • Further reading
  • Chapter 5: Deploying WordPress
  • Technical requirements
  • Preinstallation tasks
  • The stack_install role
  • Enabling the NGINX repository
  • The stack_config role
  • WordPress system user
  • NGINX configuration