Ansible instance on AWS
There are multiple public cloud providers, such as Google Cloud Platform or Microsoft Azure, that offer the same service as Amazon Web Services (AWS). In this section, we aren't going to cover much of the installation process, since the instance is already pre-installed and configured.
Instead, this section will be a brief step-by-step guide to setting up an already existing Ansible instance on AWS. First, we need to access the EC2 Dashboard of our AWS account:
We then choose to launch a new instance and look for the Ansiblemaster instance. Be careful not to choose one of the Ansible Tower instances:
We then select the number of computer resources that we want to give to our instance:
Then, we add in the disk space to be used by the instance, as follows:
We then confirm and launch the instance:
We can either create a new SSH access key or use an old one:
On our local terminal, we set permissions into the key file and use SSH to access the instance:
We can check Ansible's version and configuration. We can always update it to the necessary or the latest stable version. The following print screens show how to move from one Ansible version to another using the instance OS package manager. First, we identify the currently installed version:
Then, we run a full system software update:
Finally, with the completion of the update process, we re-identify the Ansible version:
Finally, we can use the newly installed Ansible to orchestrate the task within our AWS environment.