You are on page 1of 16

YAMI Ain 't Markup language

- .

for
→ It is a
data serialization language

|
similar like
all
programming languages
.

✗ ML or JS0N .

is /
process of translating that
into format
objects
be stored or
can
and reconstructed
transmitted
later .

KAMI
* Benefits of
:

and to use
1) simple easy
e) Follows strict
syntax
3)
Easily convertible to ✗ nil or
Json
XML JS0N
YAMAL

data in stores data in


stores Map

with

the form of tree structure


key /
value

list / sequence pair

format

glow
data
faster
faster transmission data

transmission

add comments no concept of


design for
within a
document comments .

readability ,

allow comments .

Datatypes
:

& string no
:

images
,

charts ,

boden
Dates timestamp , non -

primitive arrays ,
,

sequences .
It .

objects .

recursive values .
* Amine *

it is tool
configuration Management
.
- a

has
It three
things
- :

↳ Ami ble core An automation


open-source
:

platform

& REST AP2



"

Tower : A web 1
Ami ble app

↳ Ausible d- website with a

Galaxy
.

of community
large catalogue
created roles .

-
simple .
Reliable
.
Powerful ,

Agent
en .

- Use cases :

deployment
configuration management . .

or@Tn.Prorisiomugfcreati.ng and
setting
automated up IT infrastructure

configuration andofgysterus
management
,

ordination
co
-

comp "Ippi%µioi
* fusible is a tool that provides :

1) IT automation

2)
configuration management
3) Automatic Deployment

pushes
configuration
: server
* Aersibk is
push
nodes
configuration
to .
* fusible workflow :

&
pushing
to nodes
works by
connecting your
.

small called Ahsible modules


out
.

program
a

Ausible executes these models &


→ Then

removed them after finished

modules be reside
The
library of
→ can on

machine and there are no server / DB

any
.

required .

Host I

"
Ausible "
( A)
group
Management
Mode ssh
Host 2

(group e)

Ssh
µ,

g.gg
,, ,
.my
[ A ]
group Most 3

'
host

[ is ]
(groups )
group
host 2

host IN
* Terms used in Antibes

1) Ausible server : machine where ansible is Pasta Ued

from which
playbooks & tasks are
and task

executed .

executed
2) Modules :
commands or set of commands

at client -

side

A task is section which consists of


③ Task
a
:

procedure to be completed
single
.

tasks / related files


4) way of organising
.

Role :

later called as
playbook .

client from the


the
5) Fact :
info fetched from
with
greater
fact operation
.

variable
global
client
regarding
-

data
e)
Inventory
:
file containing
side .

7)
execution
of a
playbook
pay
:
uotifier
only if
is
8) Handler :
The task called a

is
present
.

can
set to task that
It is name
9)
a a

Tag
:

issue that
just
on to
used later
be

group of jobs
.

specific task or

* Aasible Architecture :
interacts with a

→ Amiable orchestration
engine
playbook
ausibk to
the
user who is
writing and interact
execute the ausibk orchestration .

with the services


of private
or
public
along database
configuration management
.

cloud and
collection of configuration Playbooks

out
Module SS4
Node - I

ssq

Inventory Node -2

where
www.a.n
É
installed
.

\ ⇐

Document Node - 3

that
groups
the nodes

under
specific
labels .

y instructions
set of

to
configure
nodes
.

the YANK
.

in

written

?⃝
play
* books :

- -
-

start

plays
:
-
name

node
hosts
target
.
:

tasks :

*
working
.

local machine .

the
installed only
on
I Ahsible is

Ansibk
agent
en
This makes
.

written at
2) The
playbook , and inventory are

the local machine .

node th
'

connects to the
local machine
3) The
SSH
the facts of each
4) The gathers
local machine
nodes
state of the
.

indicate the
node .

Facts

nodes
5) The send to the
play
.

books are
This
G) The executed
playbooks
-

are now

to their desired states


nodes
.

configures the

* Ausible Tower :

for audible
framework
.


It is a

the
- It
provides a Gus .
Thus ,
reducing
window
the command prompt .

dependency
on

commands tasks
Instead
of typing long
.

chick
can now be
performed
in a
single
Public /
configuration
private
Management
cloud Database

Users
ttusible orchestration

engine
.

AP ] stoats
Inventory →
.

Playbooks
Modules
plugins .

→ N1W .
* Installation Architecture :

instances Aws
Create 4
.

on
e)
Master server & run
to Ansi ble -

2) Connect

commands .

Sudo I
a) -

b) apt update

command :

3) install ausibk
by
install auiibk
apt
Version
check ausible
4)
ansible -
-
version

a) Connect all servers & update the


packages

using command

sudo apt
-

get update
and ssh
6) Connect to Ausible -
Master
generate
command
keys using
> ssh
keggen
-
which is in
folder
7) public key
ssh

copy

"
ansible server 1
authorized keys
oh
-

"
into

e) Is ~
/ .
Ssh

2) cat v1 . ssh / id -
Ma -

pub
command
1 and
give
.

ausible server
8) Connect to
-

> ssh
kygew
-

master & to
9) Now
begin
to Ausibk -

try
using
command
connect to ansibk server

> ssh Ubuntu @ private ip


-
* Ausible Ad-hoc commands :

Ausibk
ways of using
.


simplest
issue
commands
to some
when want
→ used

bunch
of servers .

server or
on a

- not for future use .

line tool .

command
.

ausibk
→ uses / usr
/ bin /
file
inventory
.

&
-
quick easy in
entry
cause
syntax -
:

"

;
ansible < hosts > [ -
in
cmoduk -
name > ] - ae
arguments
I
I
- u < username > [ -
- become]

• £ ( optional )
Captioned By default
-

specifics when we

account command
want to span
user
Values
in
which "d
run
"" "
that
privileged
am "
sudo
ansible
executed operations reg.by
.

can

the
By default
=

module
false .

You might also like