Ansible Notes – Aug Batch Online – Notes – Day -1
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
What is Ansible?
==========================
Config mgmt tool
Deployment Tool
mgmt
Server(S)
Config
- file
- dir
- apt
- yum
- usr
- group
- bash
- package
- services
Dev in Python
by Redhat
Release
Ansible - cmd
Ansible Tower - GUI - Paid - Support
Ansible AWX - GUI - Free - no suppert - most recent of not done AT
Why Ansible?
You can change CONFIG of Server(S) - Parrell
Easy to learn - share - extend - debug - test
Ideompotent
10 -------------- 1st ---------- 1 min --- 10 mins
2 --------------- 2nd ---------1 mins ------ 2min
How Ansible Works?
==============================================
HUMAN ----> ACS ------------> ARS (S)
ACS ARS
---------------------------------------------
Linux ANY
64 BIT ANY
Ansible NA
-------------------->Linux --- SSH 22
--------------------> Window - Winrm ---- http -- 5986 5985
Linux - python 3.X
Windows -
Ps3 DONET 4.5
Component of Ansible
============================
Ansible
Exexcutables
Modules - A python code which is located in ACS but run in ARS with param
Plugins - A python code which is located in ACS but run in ACS- Feature of Ansible
Configfile
Playbook
Inventory
a file which has IP add of ARS
https://www.devopsschool.com/blog/ansible-installation-and-configuration-guide/
==================================================================================
copy a file in a machine
cmd === Ansible ADHOC Commands
1000s of things in a machine
script === Ansible Playbook
==================================================================