Automation with Ansible Playbooks

Video description

Using Ansible to automate local and cloud configuration management tasks with Playbooks

About This Video

  • Gain access to a preview of the course: Automation using Ansible - Step by Step
  • Explore different locations of an ansible.cfg file
  • Transfer a file from Ansible Engine to nodes using the copy module

In Detail

This course is designed to get you hands-on with using Ansible for automating local and cloud configuration management tasks with Playbooks.

You'll be guided through working with managed nodes. Moving ahead, the course will get you hands-on with setting up password authentication. As you approach the concluding sections, you'll even get to grips with transferring a file from Ansible Engine to nodes using the copy module.

By the end of this course, you will be well-versed with the essential concepts, along with having the skills you need to automate tasks effectively using Ansible.

Who this book is for

This course is for anyone looking to pursue a career in automation using Ansible and Ansible Playbooks.

Publisher resources

Download Example Code

Table of contents

  1. Chapter 1 : Introduction
    1. Preview of the course: Automation using Ansible - Step by Step
    2. Introduction: Story before Ansible or Any other configuration Management tools
    3. Ansible Architecture
  2. Chapter 2 : Installing and Configuring Ansible
    1. Ansible Installation and Configuration Part-1 (Installation)
    2. Ansible Installation and Configuration Part-2 (Configuration)
    3. Ansible Directory Structures
    4. How to disable host key checking?
    5. Inventory file with Groups and Group of Groups
    6. Different locations of ansible.cfg file with priority
    7. Review on Ansible Architecture
    8. Installing Ansible Engine on RHEL 8
  3. Chapter 3 : Ansible Ad-hoc commands
    1. Introduction to Ad-hoc commands | Basic syntax for Ansible Ad-hoc commands
    2. How Ansible Works? (Executing Ad-hoc commands or Playbooks)
    3. Transfer a file from Ansible Engine to Nodes using copy module
    4. Download a file from Ansible Managed Nodes to Ansible Engine
    5. Create or Delete a file or directory on Managed Nodes
    6. List of different modules to work with files
    7. Install a package like git, httpd, mysql, git on Linux Systems using yum module
    8. Command Module
  4. Chapter 4 : Ansible Facts and Variables
    1. Introduction to Ansible Facts
    2. How to create and work with custom facts?
  5. Chapter 5 : Ansible Inventories (Static and Dynamic Inventories)
    1. Inventory Types and Working with AWS EC2 Dynamic Inventory Script
    2. Simple Custom Dynamic Inventory Script creation
  6. Chapter 6 : How to work with Managed nodes if managed nodes are not installed with Python
    1. Working with managed nodes using raw module
  7. Chapter 7 : Password Authentication setup and explanation
    1. Working with Managed Nodes using a Password | Password Authentication
    2. Executing Ansible tasks with default and different users on Managed Nodes
  8. Chapter 8 : Ansible Variables
    1. Basic introduction to Ansible variables
  9. Chapter 9 : Introduction to Ansible Playbooks
    1. Introduction to Playbooks with task and play concepts
    2. Writing Simple Playbooks for basic understanding
    3. Basic Key Points to run Ansible Playbooks
  10. Chapter 10 : Basic concepts to write Playbooks (Working with different variables)
    1. Print any message (ex: welcome to Playbooks) using playbook?
    2. Variable and data types
    3. Data Structures/ Data Collections
    4. Simple playbook to understand the usage of register and set_fact
    5. How to read a variable and print using ansible playbook?
    6. How to read a variable from yaml/json file?
    7. Working with command line arguments
    8. Working with Gather facts variables or setup module variables
    9. Working with inventory_hostname and hostvars variables
  11. Chapter 11 : Visual Studio Code Editor for Ansible Playbooks
    1. Installing and using Visual Studio Code Editor for Ansible Playbooks
  12. Chapter 12 : Operations on strings and numbers using Playbooks (Filters and Methods)
    1. Arithmetic operators on numbers
    2. Simple practice on Arithmetic Operators
    3. Filters and Methods of Ansible Playbooks
  13. Chapter 13 : Operators to work with tasks
    1. Comparison operators
    2. Membership operators and Test Operators
    3. Logical operators
  14. Chapter 14 : Conditional Statements
    1. Settings for Ubuntu server to consider it as a Managed Node
    2. How to use when conditional statement? (Explanation with simple playbook)
    3. Inline conditional statement
  15. Chapter 15 : Introduction to handlers
    1. Basic usage of Handlers
  16. Chapter 16 : Loops
    1. Introduction to loops
  17. Chapter 17 : Tags
    1. Working with tags and skip tags
  18. Chapter 18 : Error Handling (ignore_errors,failed_whenblock, rescue and always)
    1. Error Handling part 1
    2. Error Handling with block and rescue part 2
  19. Chapter 19 : Ansible reusable concepts with: import_tasks,include_tasks
    1. Reusable tasks with import and include
  20. Chapter 20 : loacal_action vs delegate_to
    1. Usage of local_action and delegate_to
  21. Chapter 21 : Tomcat Installation and Configuration using Playbook
    1. Java and Tomcat installation and configuration using template module
  22. Chapter 22 : Template module
    1. Introduction to template module with variables
    2. Template variables, conditional statements and loops
  23. Chapter 23 : AWS Provisioning Using Ansible
    1. Ansible Environment setup for AWS Provisioning
    2. Launch EC2 Instances with multiple security groups and Tags
    3. Simple playbooks to start stop and terminate ec2 instances
    4. Single playbook to start stop and terminate Instance
    5. EC2 Tags help to start, stop and terminate instances
    6. Cleanup Tag-less EC2 Instances using Playbooks
    7. Generate CSV Reports using ansible Playbooks for ec2 Instances
  24. Chapter 24 : Ansible Vault to Protect Ansible Playbooks with Encryption
    1. Ansible-Vault
  25. Chapter 25 : Ansible-Roles
    1. Converting a playbook into to Ansible Roles

Product information

  • Title: Automation with Ansible Playbooks
  • Author(s): Narendra Kumar Reddy Polu
  • Release date: March 2020
  • Publisher(s): Packt Publishing
  • ISBN: 9781800206496