🚀 Welcome, Pythoholic tribe! Today, we're diving into the world of `ansible automation platform` and how it enhances `configuration management`. We'll also explore `ansible awx` and other `automation tools` that are essential in `devops`, especially for those in our `ansible tutorial for beginners`. This video will help you understand `ansible automation` from the ground up
Dive deeper into AWS with our FREE courses and playlists: 🎯 AWS Certified Developer Associate Course: https://tinyurl.com/dvac01 🎯 AWS Solutions Architect Associate Certification Playlist: https://tinyurl.com/y4lr8zu4
Support our mission: 💙 INSTAMOJO: https://instamojo.com/@pythoholic 💙 PAYPAL: paypal.me/pythoholic 💙 Check out the tech I use and recommend: www.amazon.in/shop/pythoholic
Connect and follow for more learning resources: 🔔 Podcast (Blabber Cloud): http://tinyurl.com/Pythoholic 🔔 YouTube: tinyurl.com/PythoholicYT
🚨Disclaimer: The content provided on this channel is independent and not affiliated with any organization. Our videos are based on our knowledge and understanding of the topic, and we recommend viewers conduct their own research to gain a fuller understanding. We're always seeking to improve, and your feedback helps us do that! Support the channel for more content like this in the future.
Now let's talk about automation platform
or anible. This is a really important
one because most of the people who are
working in Ansible may or may not work
on this but most of the companies are
moving towards Ansible platform. So
let's talk about this and more
extensively about anible tar and AWX and
let's see how we can make our
deployments easier.
[Music]
And I'm not sure if you have heard of
Anible TAR or AWX, but I want you to
know about them. When it comes to
writing small playbooks, we may write a
lot of simple or a bit complicated
playbooks. But when our application
grows and it becomes more and more
resource heavy, these small playbooks
and structures can only take you so far.
So you might ask me what was the need
for anible automation platform. So
that's a very valid question. Let me
tell you that it was born from pain of
manual automation. Yes, because it was
messy, insecure and lacked control. So,
Ansible had to come up with a solution
where we could get a centralized web
interface, scalable workflows and secure
credential management. And the benefit
we would get from that is better
efficiency, higher security and
collaboration for complex infrastructure
automation. And I hope you got the idea
now. Yes. So first one is anible tar. So
Ansible tar is described as a web- based
solution that boosts the power of anible
for automating tasks tailored for
enterprise grade automation. It is a
commercial product offered by Red Hat
which means it comes with official
support and additional features and the
key attributes for an RR are it is a
commercial platform requiring a paid
subscription so you need to pay for it
to use it and also offers enterprise
ready features that prioritize
readability and scalability suitable for
production environments and for security
it includes security features such as
role-based access control auditing and
integration with external tools but the
best part is that it is supported by Red
Hat ensuring it receives official
support and maintenance along with
guaranteed upgrades and migration path.
So I'm really excited to break down the
layers of Ansible automation platform
focusing on anible star and its relation
to anible itself. So here we will
highlight various use cases for
enterprise automation as well. So users
and admins that you see here these are
the individuals who actually interact
with anible including system
administrators and users who execute
task and access reports. When the user
actually interacts with tar the initial
layer it starts with first the role
based access control. So here it allows
administrator define roles with specific
permissions and assigns them to users
ensuring that individuals only have
access to the resources necessary for
their role. Then we have knowledge and
visibility. So here we get a centralized
view of all anible playbooks giving
users insight into automation processes,
job status and history. So this
visibility is crucial for
troubleshooting, auditing and compliance
purposes. Then we have scheduled and
centralized jobs. So with Tava we can
actually schedule jobs to run at
specific times and manage them centrally
which is essential for routine tasks and
ensures that jobs are executed
consistently across our infrastructure.
And obviously we have the user
interface.
Uh then the tower API. So Ansible tower
features comprehensive API that allows
for integration with the systems and
custom workflows. So here with the API
tower or the tower API we can integrate
with cloud providers like AWS, Azure and
GCP to automate infrastructure
provisioning and also connect to
configuration management tools like
Papit and Chef and we can manage network
devices using tools like Cisco ACI and
Ansible NetOps. And below Ansible tar we
have the core anible platform. The first
thing that we see here is open source
module library. The Ansible comes with a
vast library of modules for automating
all sort of tasks in various
environments starting from cloud
provisioning to network configuration.
I've already told you this and anal
supports a range of plugins to extend it
its functionality and integrate with
other tools and systems. But what's the
use of Python codebase here? Uh I'm I'm
not sure if you already know this, but
at its core, Ansible is written in
Python, making it accessible for
organizations with Python expertise and
allowing for the development of custom
modules and plugins. And that is why we
need the layer with Python codebase. And
obviously, we have the transport layer
with SH and WinRM. Next, we have the
automation layer with automate your
enterprise. So as we all know Ansible is
a powerful tool for automating across a
variety of domains be it infrastructure
or network uh container cloud services
or security and compliance. This layer
actually helps us with that.
And when it comes to the use case with
respect to the users, Ansible provides
flexibility in automating different
aspects of it such as provisioning on
variation management, app deployment,
continuous delivery, security and
compliance and orchestration. Here my
intention is to show how Ansible and
Ansible Tar work together to provide a
comprehensive solution for enterprise
automation catering to wide array of
automation needs. And maybe we as
students or developers we may not
purchase this facility but the important
thing to learn here is that you have the
option to consume it as a part of your
job. So your company might be using it.
You may not itself purchase this but the
company that you're working might have a
requirement and you can help with that.
So that's the main purpose of learning
this. Now let's move on to Ansible AWX.
So while tower is a commercial product
offered by Red Hat. On the other hand
AWX is the open-source upstream project
from which anible tower offering is
derived. While they both are similar in
feature, uh AWX is intended for a more
technical audience who are comfortable
with less polish and uh more frequent
updates. So what are the key attributes
of AWX? The biggest advantage of AWX for
us developers is that it is an
open-source platform under the GPLV3
license making uh meaning it's free to
download and use with no licensing
costs. So I'm sure now that you might be
aware of what we are going to use
because it's free. So it's a good thing
that we can use it as well. So with this
we get communitydriven development
supported by the open source community.
So as you know with all the open source
platforms communitydriven platforms are
really really good because they have a
lot of uh updates and a lot of people
contribute to that. So it's a very good
thing. So while it has many features
with TA it lacks some advanced features
like enterprise integration and
extensive security controls but some
companies don't need it. So that's an
advantage instead.
And one more ideation is that AWX is
self-hosted and maintained which means
users are responsible for installation,
configuration and maintenance. But
having said that I feel you get a better
control with AWS than to so that's
something that I think is also an
advantage for us. So let's talk about
Ansible AWX and how does it work. So
first we have the connectivity layer.
Here we here as well we are starting
with the version control. So AWX
integrates with version control systems
like Git, SVN, allowing you to keep your
playbooks and other content under source
control. So this was about version
control. Then we have the internet the
external API connectivity. So external
connectivity AWS might require for
example to download rules from Ansible
Galaxy or reach APIs on the internet.
Next is external systems. So AWX can
interface with external systems for
notification or authentication like LDAP
and also with monitoring among other
services.
And there are additional services there
are optional services that enhance AWS
functionality such as logging and
metrics collection. And when it comes to
custom integration, AWX allows for
custom integration through plug-in and
web hooks which can extend its
capabilities and connect it to other
tools and workflows. Now let's move to
the core component of AWX. Let's talk
about this. So first we have the web
user interface. This is the front end of
AWX that users interact with which
provides a user-friendly interface for
managing playbooks, inventories and job
templates. So next we have the rest API
and here AWX includes a restful API that
allows you to interact with the system
programmatically. So this will help us
with automation and integration with
other systems. So there are two ways
that you saw here web user and web user
interface and the rest API to interact.
For the database part we have the posgra
SQL database to store its data including
information about job inventory and
system setting. And we also have a
component of caching and indexing where
we use radius cache uh which is
basically a key value store to help with
caching and coordinate task with the AWS
cluster. Next we have the manage nodes.
So this is same as what we have
discussed earlier uh which you already
know. The next thing that you see here
is anible playbooks and inventories. But
here in AWS the playbooks define the
automation job that blocks runs. So
while inventories list the manage node
and organize them into group. Now let's
see the interaction as well. So how do
they interact? So for the job execution
which is the actual actor here the core
function of AWS is to execute anible
playbook. So this is done by the Ansible
worker. So Ansible worker. So these are
the worker nodes powered by AWX which
run the encil playbooks. They are the
engine behind the task execution. So
this is the overall architecture of AWX
and these workers actually execute the
task on the target machines. So target
system one, target system two and this
is how they interact. So manage node
interacts with the job execution part
with anible workers and AWX actually
handles the workers and these workers
actually execute the task on the set
target systems on the target system. So
this is the overall architecture of AWS
and as a developer using AWS we can
automate infrastructure provisioning and
configuration and we can implement
continuous integration and uh continuous
delivery that is CI/CD and we can also
use this to test and validate our
automation and also automate our
security and compliance
and the most important part as a
developer we should understand that AWX
is an open-source platform which allows
us to customize and extend it for our
needs. So which one should we use or
which one should we choose? So choose
anible tar if you need official Red Hat
support or if you require advanced
features like arbback and approval
workflows or if you want to manage a
large infrastructure and complex
automation need and you have complex
automation needs. But you can choose AWS
if you prefer a pre and open source
solution. So you if you have a smaller
team or simpler automation needs or if
you're comfortable relying on community
support and I have also given you the
table to make your decision here. So
based on that you can decide which one
to choose either anible tar or AWX.
[Music]