Disclaimer:-Every thing provided on this website is only for Educational purposes and free. Author is not responsible,If the given information is used for any illegal or UnEthical Purposes. This website does use cookies to store information about visitors preferences, record user-specific information on which pages the user access or visit, customize Web page content based on visitors browser type or other information that the visitor sends via their browser.

Components of Ansible

Components of Ansible?
----------------------


Programs:
1. ansible
2. ansible-doc
3. ansible-playbook
4. ansible-pull

Modules:
It perform configuration and system management. Example: Modules copy, service, file, yum, user, group, command, shell, ping etc.


Types of Modules:
1. Core Modules:   Core modules are the modules which comes with ansible package installation.Latest ansible 2.3.* has 1000+ core modules.

2. Custom Modules.
Ansible admin can write their own modules  and can add them in Ansible library. Modules are written in Python,
but they can be written in any interpreted programming language (Ruby, Shell, Python).



 




Feature of Ansible?


Feature of Ansible?

------------------------------
1. Open Source


2. It is written in Python so it is easy to read and extend.
 

3. Easy installation and configuration.
 

4. Highly scalable.
 

5. Agent less client configuration.

What is requirement of Ansible?

What is requirement of Ansible?
-----------------------------------------------
There are two types of machine in Ansible architecture:-
1. Control Node
2. Manged Node/Client Node/Remote Node

Control Node is the machine which will act as a server and other machine will act as a client.

Requirement of Control Node:-
-----------------------------------------------
1. Any Linux distro ( Windows is not supported for the control node)
2. Ansible Package
3. Python version 2.6 or later
4. OpenSSH package

Requirement of Client Node/Remote Node/ Managed node:-
-----------------------------------------------
1. Any Unix/Linux distro or any Microsoft windows OS
2. Python version 2.4 or later.
3. OpenSSH package.

***** When we do minimal installation of RHEL/CentOS then we will see python and OpenSSH both are automatically installed. Which means we just need to install Ansible package on control node and we can start using it on any environment immediately.

***** Best thing in Ansible is that it is agentless means  no agent needed like other application to establish connection between server and client.

How to install Ansible

How to install Ansible on RHEL or CentOS machine:

Step:1.  Download rpm package of EPEL(Extra package for enterprise Linux) for RHEL6.x/CentOS6.x using below link
http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

We can use wget before above link to download package using command line. In case above link is not available then download EPEL repo from http://tinyurl.com/epelforlinux

Step:2.  When EPEL rpm is downloaded then use rpm command to install it.

rpm -ivh epel-release-6-8.noarch.rpm

Step:-3  When EPEL package is installed then it will create repo files under /etc/yum.repos.d . Now we just need to use yum command to install ansible package.

yum install ansible-2* -y

To validate ansible package installation :
rpm -qa | grep -i ansible



What is Ansible

Ansible is an open-source automation engine that automates software provisioning, configuration management, and application deployment.

As with most configuration management software, Ansible has two types of servers: controlling machines and nodes. First, there is a single controlling machine which is where orchestration begins. Nodes are managed by a controlling machine over SSH. The controlling machine describes the location of nodes through its inventory.

To orchestrate nodes, Ansible deploys modules to nodes over SSH. Modules are temporarily stored in the nodes and communicate with the controlling machine through a JSON protocol over the standard output. When Ansible is not managing nodes, it does not consume resources because no daemons or programs are executing for Ansible in the background.

The best thing of Ansible is that it uses agentless architecture.
Introduction of Operating System

Operating System is an as an interface between  Hardware, software and user.

Hardware :  Computer hardware is the physical parts or components of a computer.

Example:- Keyboard, Computer data storage, Hard disk drive (HDD), Graphic card, Sound card, Memory (RAM), Motherboard, hardware consists of CPU, Main memory, I/O Devices, etc.

Software: There are two types of software:

1. Application software : Application software are computer programs that allow users to perform specific tasks. It is generally a program or collection of programs used by end users.

Any application which we can install on any OS like:- Media player, Office, Games etc. comes under application software.

2. System software : All Operating system comes under system software. 

Operating System, program that manages a computer’s resources, especially the allocation of those resources among other programs.

Examples: Window, Linux, Mac, Unix, Mint etc.


Task of Operating System:

  •     Controlling and managing file systems.
  •     Managing I/O Devices & Handling "interrupts" generated by the I/O  controllers.
  •     Set up the System requests.
  •     Hiding the complexities of hardware from the user.

Chapter:1 Linux Basics

What is Computing and its types?
History Of Unix and Linux.
What is Linux?
Unix vs Linux vs Windows vs MAC
Opensource vs Boundsource
GPL, GNU, FSF
Linux Principles
What is Kernel?
Function of Kernel?
What is Boot loader?

Chapter:2 Linux distributions installation
Installation on Physical box and Virtualbox/Vmware/KVM

1) RHEL5,RHEL6,RHEL7 installation.
2) Centos5,Centos6,Centos7 installation.
3) Ubuntu installation
4) Debian installation
5) Suse installation
6) Kali Linux installation
7)Linux pendrive bootable and install from pendrive.

Chapter :3  Login environment - Graphical & Virtual console
Linux multiuser & multiprocess view show.
Linux desktop environment - GNOME & KDE
Linux graphical work :- Adding panels, applets, theme change, icon change and complete linux graphical etc.

Chapter:4 Software installation (Graphical and Cli)

Open Office (Word,Excel,Powerpoint), Email Client (Thundirbird, Evolution), Chat application(Pidgin, Skype, Jitsi), Media player (Totem,Vlc), Games installation, Remote application  (Teamviewer, Vncviewer,), Web Browers (Chrome, Firefox), Image tool(Gimp,Pinta,Darktable,PhotoQt,Krita)
Using RPM/YUM

Chapter :5 Basic commands.
aspell,arch,ac,arp,bc,cat,cal,cut,cd,cp,clear,chvt,date,diff,dir,dmesg,dmidecode,echo,exit,history,head,factor,file,less,id,ls,ll,more,sort,sed,startx,su,stat
pwd,rm,tree,tail,tailftty,tr,touch,uname,uptime,unalias,uniq,w,wc,wget,who,whoami,wall

Chapter :6 System Documentation and  Helping tools
(man, info, whatis, whereis, locate,  find, which, /usr/share/doc,  online helping communities)

Chapter :7 Linux File/directory management and text file  editors
(cat, touch, mkdir, cd, rm, rmdir, nano,  vi, vim, gvim, gedit, emacs).
Redirect Output to a File or Program.
1/0 Redirection and Pipelines.
Matching Text with grep,pgrep.
Regular Expressions Fundamentals.
Linux File  Hierarchy concepts
Absolute and relative path.

Chapter :8 Permissions  and User/group management
(useradd/adduser, passwd, userdel, groupadd, groupdel, usermod, system-config-users, chmod, chown, chage, umask, suid, sgid, sticky bit,
ACL( getfacl, setfacl)
Sudo
Important files related to user and group :
/etc/passwd
/etc/group
/etc/shadow
/etc/gshadow
/etc/login.defs
/etc/default/useradd

Chapter :9  Process and task scheduler
(ps,pgrep,pidof,kill,killall,pkill,nice,renice,top,jobs,bg,fg, gnome-system-monitor, jobs, at, crontab)

Chapter :10 Compress / Decompress and Backup restore
(gzip,  gunzip, bzip2, bunzip2, tar, cpio, rsync)

Chapter:11  Adding Disks, Partitions, and File Systems to a Linux System.
Creating Partitions with ext2/ext3/ext4 and xfs, Managing swap space.
Difference between ext2, ext3, ext4, xfs  and raiserfs.
(fdisk, parted, mkfs, e2label, blkid, fsck, tune2fs, dumpe2fs)


Chapter:12  Printing in Linux
(lpr,lpq,lprm,lp,lpstat,cancel,lpstat,ps2pdf,mpage)

Chapter:13 Quota in Linux
(usrquota,grpquota,quotacheck,quotaon,quotaoff,edquota,setquota)


Chapter :14 Boot Process
Linux boot process  explain
Boot  process explain
root passwd break.
Grub passwd apply  and break

Chapter :15 Networking
(IP address, Subnet mask and  Defalut gateway concept)
(hostname,  ifconfig, ip add r,ping,  route,  netstat, ifup,  ifdown, host, dig, nslookup,  traceroute, mtr, wget, )

Chapter :16 Runlevel and critical files
(runlevel, init, chkconfig, ntsysv)
/etc/inittab
/etc/grub.conf
/etc/rc.d/*

Chapter :17 TELNET and SSH  Server
ssh,ssh-keygen,ssh-copy-id, scp, telnet, nc


Chapter: 18  LVM
Physical volume, Volume group, logical volume creation.
Logical volume extend and reduce.
Logical volume enable and disable.
LVM   snapshot and restore.
(lvcreate, lvextend, lvreduce, lvchange, lvs, lvdisplay,  lvscan, lvconvert, lvdump,  lvresize, vgcreate, vgdisplay, vgs, vgscan, vgimport, vgexport, vgchange, pvcreate)

Chapter: 19  Yum server

Chapter: 20 Apache Web server

Chapter: 21 DHCP server

Chapter: 22 DNS  server

Chapter: 23 Postfix mail server

Chapter: 24 Samba server

Chapter: 25 NFS server

Chapter: 26 Firewall(Iptable,firewalld)


Chapter:27  Troubleshooting


Basic Linux training covers:
  • Training of above content and each day training video.
  • Above training covers all linux distro in  which production work(RHEL5+6+7,Centos5+6+7,Suse,Ubuntu)
  • Interview questions/answers preparation.
  • Resume preparation.

Please Contact for Individual/Group/Online/Classroom training :

merhca@gmail.com