Ansible

From PKC
Revision as of 11:57, 23 September 2021 by Emhavis (talk | contribs)
Jump to navigation Jump to search

Ansible is an automation tool for IT professionals for managing software in a network environment, particularly designed to apply repetitive changes to a large number of machines. It can be used in conjunction with Terraform.

Installation for Ubuntu

This is the community documentation landing page for Ansible. If you must ask, the answer is Yes, Ansible has a Windows implementation: Ansible for Windows.

Ubuntu Installation

The original documentation on Ansible's Ubuntu installation can be found here: The actual installation commands are:

sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository --yes --update ppa:ansible/ansible
sudo apt install ansible

Installing Kubernetes with Ansible

Ansible is ideal for automating the process of installing Kubernetes software, partially because Kubernetes is a technology for managing replicated computing services in a network cluster. There are many resources that explains how to use Ansible for installing Kubernetes, we provide links to the following tutorials to get started:

  1. Create Kubernetes Cluster Using Ansible Playbook Automation
  2. Installing Kubernetes with Ansible on AWS
  3. Kubernetes setup using Ansible and Vagrant
  4. Video/Kubernetes Cluster Installation using Ansible

Ansible Books

There are a few books on Ansible:

  1. Ansible for DevOps[1]
  2. Ansible for Kubernetes[2]

Ansible Tips

  1. Ansible: How to accept user input using var_prompt and command line
  2. How to Build Docker Images with Ansible on Ubuntu 20.04
  3. Ansible module: expect Executes a command and responds to prompts
  4. Ansible module: Network commands and responses Working with command output and prompts in network modules

Ansible Tutorials

Video/Create docker containers using Ansible

LaCroix, Jay (Jul 31, 2020). Getting started with Ansible Series. local page: Learn Linux TV. 


Valaxy Technologies

{{#ev:youtube |1VhPVu5EK5o }}



Installation on MacOS

References

  1. Geerling, Jeff (August 5, 2020). Ansible for DevOps (2nd ed.). local page: Midwestern Mac, LLC. ISBN 978-0986393426. 
  2. Geerling, Jeff (August 5, 2020). Ansible for Kubernetes. local page: Midwestern Mac, LLC.