Hi’ya! Hi folks.
How are you doing today?
Magandang umaga! Kamusta po kayo ngayon, mga kapatid?
Folks, I hope you’re doing well at this time, regardless where you’re at.
Good morning!
My friends, for today we have a task from folks at Kode Kloud. Here it is:
During the weekly meeting, the Nautilus DevOps team discussed about the automation and configuration management solutions that they want to implement. While considering several options, the team has decided to go with
Ansible
for now due to its simple setup and minimal pre-requisites. The team wanted to start testing using Ansible, so they have decided to usejump host
as an Ansible controller to test different kind of tasks on rest of the servers.Install
ansible
version4.9.0
onJump host
usingpip3
only. Make sure Ansible binary is available globally on this system, i.e all users on this system are able to run Ansible commands.

We’re told to install a piece of software called “Ansible”.
Folks, Ansible is a very good helper when it comes to managing and putting up Linux server(s) configurations. It is a tool for automating the various processes necessary for configuring machine instances, or servers.
It runs on Python programming language, hence, we install it via pip3, a Python software package manager.
And we’re asked to install Ansible on our jump host.
For reference, here is our infrastructure manifest from Kode Kloud engineer program.

Okay.
My friends, let’s begin.
First off, we invoke “cat” a Linux command that prints and lets us read various text content on the terminal. Once more, it is short for “concatenate”.
And it just helps to think about our lovable house pets, cats at home, when we try to remember about this Linux utility program.
For me, it helps. To think about literal cats. Or other animals, when remembering some Linux commands for example. Yes, folks? 😀

Since one of our cats here is presently pregnant (for a second time this year, wow!) with kittens.

Me thinks I’ll name one of the kittens from the litter, “Meow-zilla!” 😀 Haha! Or, “Miaw-miaw”.
What do you think, folks? 🙂
Also, one of our well-loved kittens at home, named “Bruce”, has been missing for several days now. 🙁

There’s no one left anymore from the first batch of kittens that our cat has reared this year.

Anyway, let’s go back to our task, folks.
Right… we need to install Ansible into our jump host machine. And we’re told to do this via “pip3” (pronounced: “pip three”).
To determine what Linux distribution we have in the machine we have before us. We enter this Linux command.
cat /etc/os-release
Usually, this command will print out the OS (operating system) details for you.
However, in the event that it doesn’t. I dunno. Please look up another way online. Give it a try. If you have trouble, feel free to reach out and let me know. From my side, I’m willing to work on it with you folks.
There’s other ways to know a distribution’s OS details other than this.
It will still likely involve the Linux command, “cat”. 😅
Sorry, this is what I know. And, I learned it from one of Kode Kloud’s learning lectures.
Enter this Linux command from the terminal. So that we can determine if “pip3” is installed on our machine.
pip3

Since it prints out what we can do with the program. And not an error. Then, this means that the package manager is installed and running on our system.
Now, my friends, we install Ansible with this Linux command.
sudo pip3 install ansible==4.9.0
Note, that we have specified a software version (in this case, 4.9.0). If you leave the version blank, it should install the current or latest version available.
After you enter the server password, it should install this software for you.
Then, you’ll need to do the following:
ansible --version
Folks, we invoke Ansible and ask its version on our system. This is one way to understand if we have the right piece of software properly installed on our server.

And, that’s it my friends.
For our purposes, our task for today is now done.

Good job! Excellent.
See you folks tomorrow! Thanks, and may God bless you all.
Peace, my friends!

Make coffee, not war! Alright, folks?
Good stuff.
Leave a Reply