DevOps Training Material

«Back

Ansible is an agentless configuration management tool that uses YAML templates to define a list of tasks to be performed on hosts.

How to Setup ansible ?

Linux | via ppa (ubuntu)

#!/usr/bin/env bash

export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y software-properties-common
add-apt-repository -y ppa:ansible/ansible
apt-get update
apt-get install -y ansible

Linux | via python pip

#!/usr/bin/env bash

export DEBIAN_FRONTEND=noninteractive
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
apt-get install -y software-properties-common
apt-get install -y python3-pip
pip3 install ansible

Windows Subsystem Linux

Setting up ansible on WSL