DevOps
  • 🏁Roadmap
  • PRE-REQUISITE
    • Glossary
    • Linux
    • Networking
    • Server
    • Databases
    • Security
  • FUNDAMENTALS
    • 12 Factors
    • GIT
    • Shell Scripts
    • JSON/YAML
    • Python
    • Golang
    • Packaging
  • DEVOPS TOOLS
    • Docker
    • Terraform
      • Module
      • HCL Syntax
      • State
      • .tf file
    • Ansible
    • Chef
    • Kubernete
    • ArgoCD
    • Chef
    • Puppet
    • Prometheus
  • PoC
    • USE CASES
Powered by GitBook
On this page
  • Ansible 101
  • Why Ansible
  • Concept
  • Commands
  • Advanced Ansible
  1. DEVOPS TOOLS

Ansible

Ansible 101

Why Ansible

Automate the repetitive tasks involve:

  • provisioning

  • configuration

  • CD

  • application deployment

  • security compliance

Concept

Control node

Managed node

Inventory

Commands

Install
# clone a repo to local machine
python3 -m pip installl --user ansible

# create an inventory by adding the IP address or FQDN to
# /etc/ansible/hosts
[myvirtualmachines]
192.0.2.50
192.0.2.51
192.0.2.52

# verify the hosts in inventory
ansible all --list-hosts
Connection
# ssh connection
ssh username@192.0.2.50

# ping the managed nodes
ansible all -m ping

Advanced Ansible

Previous.tf fileNextChef

Last updated 2 years ago