So friends, just to kick off this particular skill,
what I want to do is to make a brief note
about something known as collections within Ansible.
Because as it transpires, we're going to have
to install a particular collection
in order to perform a particular action later on
within this very skill.
So quite simply when you happen to install Ansible,
you will recall we installed something known
as Ansible Core.
Pretty much Ansible has become disaggregated
and simplified so that it is much more manageable
for the maintainers.
Pretty much when Ansible had everything
baked in to the products, basically it became too busy WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
baked in to the products, basically it became too busy
with too many components to manage
and if there was a change,
well it just gave the developers headaches.
And because of this, it wasn't a very good user experience.
So now pretty much you just install Ansible Core,
which is maintained by Ansible.
And if you want additional functionality,
you can just go and install a particular collection
dedicated to performing a particular task.
So really what this has done is made Ansible
more lightweight and much more modular.
You can just add in the functionality that you need WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
You can just add in the functionality that you need
as you go on and like I say,
the way we do this is via collections
and we can actually get these collections
utilizing Ansible Galaxy,
which we talked about in a previous skill.
Now you can also get collections via different ways
such as directly via TAR Archive, that type of thing,
but like I say, Ansible Galaxy is the easiest way to get this.
Now these particular modules are going to have
a fully qualified collection name.
This is your FQ CN.
So similar to when we happen to use,
say for example, the copy module, WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
say for example, the copy module,
within our Playbooks, we have been supplying the FQ CN,
which in this case here is Ansible built in,
which is the actual name of the collection.
And then at the end, we actually have the module name.
Now very often you can just supply the name of the module
itself such as the copy module or perhaps the file module
without supplying the FQ CN, but in my opinion,
I just prefer to provide the full path because,
quite honestly, it's less ambiguous.
Some modules may have similar names.
And by being explicit, it helps avoid any confusion WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
And by being explicit, it helps avoid any confusion
or accidentally using the wrong module.
So let me just break the tension.
The actual collection we need to install
is called Ansible POSIX, such as Click This Link here
and if we go down, we can see all of the modules
within that collection along with a brief description.
So the one we're going to be using in this particular skill
is the authorized key module.
So let's click this link here and it tells us a little bit
about what this module can do.
Now notice it's not part of Ansible Core.
If you want to install it, you're going to have to run
the command Ansible Galaxy Collection Install WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
the command Ansible Galaxy Collection Install
and then Ansible POSIX.
So let's just copy this right here.
So if I just paste in that command and to enter,
give it a moment and it's going to begin downloading
the collection.
Now with that now done, if I just list my collections,
now I have the POSIX collection giving me access
to all of those modules, including the authorized key module,
which we'll be using later on within this skill.