MOTOSHARE 🚗🏍️
Turning Idle Vehicles into Shared Rides & Earnings
From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.
With Motoshare, every parked vehicle finds a purpose.
Owners earn. Renters ride.
🚀 Everyone wins.
- What is Ansible?
- Why We need Ansible? Its Benefits?
- How Ansible Works?
- Ansible Architecture?
- Components of Ansible
- What are the types of Inventory we can pass?
- Top 10 Ansible Modules?
Write an Answer in comments sections?
What is Ansible? Ansible is a server config management tool
Why We need Ansible? Its Benefits? time, cost,
How Ansible Works? using python
Ansible Architecture? ACS and ARS
Components of Ansible control node managegd node, inventory, module, plugin
What are the types of Inventory we can pass? command and file
Top 10 Ansible Modules? copy, package, yum, ping, command
1.Ansible is an open source toll used for Configuration Management, Application Development, Provisioning (e.g., cloud resources), Orchestration of complex IT tasks
1. What is Ansible?
Ansible is a tool to automate computer tasks like setup and deployment.
2. Why We need Ansible? Its Benefits?
We need Ansible to save time, reduce errors, and easily manage many computers.
3. How Ansible Works?
Ansible connects to computers via SSH and runs instructions from playbooks.
4. Ansible Architecture?
Ansible uses a control node to manage multiple remote nodes without agents.
5. Components of Ansible
Key parts are Inventory, Playbooks, Modules, Plugins, and the Control Node.
6. What are the types of Inventory we can pass?
Static (files) and Dynamic (scripts or cloud sources) inventories.
7. Top 10 Ansible Modules?
Common ones are: command, shell, copy, file, yum, apt, service, user, git, and template.
What is Ansible?
Tool used for configuration management, application deployment, and task automation
Why We need Ansible? Its Benefits?
deploy across multiple environments, useful in environments where multiple tasks work independently
How Ansible Works?
it will connects to managed nodes and push the codes with stateless
Ansible Architecture?
controlnodes
managed nodes
inventory
modules
plugins
Components of Ansible
inventory
modules
playbooks
tasks
roles
handlers
What are the types of Inventory we can pass?
host_variable
group_variable
Top 10 Ansible Modules?
file
directory
user
group
service
apt
yum
cmd
script
package
1)Configuration management tool for app deployments, any task automations, by using yaml files which we call as playbooks.
2)we need ansible because it automates tasks like any package installations or run any multiplle scripts at once, benefits are like saving time, reducing mistakes etc.
3)Ansible works by writing playbooks, it uses ssh to connect to the machines.
4)control nodes, managed nodes, inventory file, playbooks,modules
1a) Ansible is a configuration management tool.
2a) We need ansible as we can install softwares, configurations and automation. Yes
3a) Ansible works as a agentless
4a) Ansible architecture is Aka
5a) Components of Ansible are inventory, plugins, roles ,vars, templates, handlers
6a) we can pass 2 types they are 1. all and 2. nogroup
7a) apt, package, debug, service, command, copy, package,file, ping,template …etc
What is Ansible?
Config Management toolWhy We need Ansible? Its Benefits?
Save timeSave costImprove efficiencyHow Ansible Works?
Human –> ACS –> ARSAnsible Architecture?
Human –> ACS –> ARSComponents of Ansible
ExecutableModulePlginWhat are the types of Inventory we can pass?
cmdfilescriptdirectoryTop 10 Ansible Modules?
filedirectoryusergroupserviceaptyumcmdscriptbashpackage
1] It is a configuration management tool used to automate task
2] To make work easier by automating task via playbooks. It is agent-less and follows idempotence.
3] Connects to remote machine over SSH and pushes small programs called modules to execute taks. Uses inventory files to define hosts and playbooks
4] Consists of control nodes, modules, playbook and inventory file. Connected via SSH connection
5] Inventory, modules, playbooks, tasks, roles, variables, templates, handlers, plugins, facts
6] 2 types of inventory we can pass: static and dynamic
7] ping, copy, file, yum/apt, service, package, user, group, authorized_key, shell
5)types of inventories – static inventory, dynamic inventroy
6)
What is ansible?
It is a configuration management tool that allows us to manage the configuration in the servers. It is from Redhat and Written in python
Benefits?
It saves time for deployments to 100’s of servers
It saves cost as it is open sources and free.
Configurations are written through coding, that helps for automations.
improves the efficiency in work.
IDEOMPOTENT
How it Works? and architecture?
It has 2 major components.
ACS – Ansible control server
ARS – Ansible Remote server
Below is the flow.
HUMAN —-> ACS —> ARS
Also it has Executables under /usr/bin/ansi*,
modules which is a python code present in ACS and runs in ARS,
plugins are the features of ansible, which is also python code running in ACS,
configfile under /etc/ansible/ansible.cfg – contains settings and help to override the default settings.
Components:
Playbook
Inventory
config file
Types of inventory we can pass?
CMD,
file,
script,
directory
Top 10 modules?
file
directory
user
group
service
apt
yum
cmd
script
bash
package
Modern IT systems often involve thousands of servers or environments. Managing them manually is slow, error-prone, inconsistent and it will be hard to scale. So using ansible tool, it gives us 1. Set up new servers automatically. 2. Deploy applications consistently. 3. Enforce configurations across environments. 4. Manage infrastructure as code.
Q1. Ansible – It is redhat own by, now bought by IBM, is a configuration management tool which manage hosts configuration and other activities on hosts. Its is a prime leader in configuration management tools such as chef, puppet, ie.
Ansbile is a sort of automation tools which offer various python programs and utility to
manage complete infrastructure via command line or via GUI with various options.
Q2. – We need Ansible to perform various automation on list of hosts or inventory, we can also setup & configure hosts at bulk level with less time, it also offer idempotent which is nothing but manage state if any task has been executed at once then it will maintain the state of the activities and only perform required, updated instruction via various commands. It also save time, cost and improve efficiency in work place.
Q3. As a user, we initiate a command via Ansible Controller hosts, with the help of plugins & modules, it perform required instructions on various Ansible hosts/inventories.
Q4. User -> ACS (Ansible, Playbook, Inventories/configuration) -> ARS
Q5. i.) Ansible, ii.) Playbook, iii.) Inventories iv.) configuration
Q6.) file based, command line based in the form of IP/hostname/FQDN
Q7.) copy, apt, file, group, user, git, apt, service, package,
Ansible is a tool which helps to manage for all types of management of the servers, or application using this remotely on Linux or windows environment, with mange of multiple commands which helps to run as remotely and fast.
Ansible is essay to manage various task very fast and simple ways with very much same for all the servers no difference in the task or work whichever is done with the same command.
Ansible work remote way on Linux it uses SSH and in windows its usages winrm utility with client list because the required utilities are already comes with OS.
Ansible is an open-source automation tool that simplifies the works and configuration management, application deployment
Single, Group and group combination.
file
directory
user
group
service
apt
yum
cmd
script
bash
package
What is Ansible?
Ansible is Configuration Management tool
Why We need Ansible? Its Benefits?
Useful in updating multiple hosts at a time. Benefits are, it is agentless, idempotent and secure.
How Ansible Works?
Ansible works with SSH protocol between Linux to Linux servers while between Linux to Windows, it works with WinRM protocol.
Ansible Architecture?
Ansible’s architecture basically has two major servers. One is Ansible Controller Server (ACS) and the other is Ansible Remote Servers (ARS)
Components of Ansible
Executables
Inventory
Modules
Plugins
Collections
Global Configuration File (ansible.cfg)
What are the types of Inventory we can pass?
Remote Host IPs
Remote Hostnames
Static
Dynamic
Top 10 Ansible Modules?
yum
uri
systemd
sysctl
terraform
file
user
group
copy
synchronize
timezone
1)Ansible is config management tool that allows us to Deploy application, configure sytem, install softwares etc it’s agentless
2)Benefits:
Agentless – uses SSH which is already present on most systems
Idempotent – Running a playbook multiple times won’t repeat work
Inventory management – Easily manages all types of server
3)Ansible works by connecting to remote systems over ssh, then executing tasks using modules to manage systems and application
4)*control node– our machine
*Managed node – Traget machine
*inentory , modules, plugins,olaybooks
5)static , dynamic, Inline
,
6)yum, apt, service ,file ,copy ,user, ping ,shell, authorized_key ,group
It is configuration management tool, which operates by connecting via SSH in linux and WINRM in windows.
Agentless, scalable, extensible and easy to use in cross-platforms
via control node ACS from where it can be deployed and runs on ARS remote or managed nodes.
uses control node to execute tasks on managed nodes.
inventory, modules, plugins, playbooks, roles
static inventory ini format
ping
shell
command
yum
apt
git
user
service
file
copy
Ansible Architecture?
Human –> ACS –> ARS
Human –> tower –> ARS
Ansible , Playbook , inventory , Ansible configuration
1.Ansible connects to each server using SSH.
2.Ansible reads the inventory (inventory.ini or dynamic source) to know which servers to target.
3.It pushes a temporary python script to the remote server.
In ansible Control Node talks to Managed Nodes (Targets) using SSH.Agentless: No software/agent is needed on the target servers.
The components of ansible like 1. Inventory 2. Modules 3. Plugins 4. Playbooks 5. Tasks 6. Roles 7.Variables 8. Collections etc