You’ll run the LearnFest tasks on RHEL instances on AWS. So before starting with AAP you have to stand up the needed instances.
The guide has been tested using a blank AWS environment sandbox Red Hatters can order in RHPDS. But everything should work the same in a regular AWS account with access tho the RHEL 8 marketplace AMIs.
So off to the first tasks: deploy the needed RHEL instances into an AWS account. And as a warm-up you’ll use Ansible for this (we have prepared the Playbook for you). If this your first encounter with Execution Environments and ansible-navigator
; just enjoy, you’ll learn more about all this later.
Prerequisites
ansible-navigator
and podman
Access Key ID
and a Secret Access Key
for your AWS account, Red Hatters will find this in the confirmation email from RHPDSTasks
ansible-navigator
machine: Clone https://github.com/ansible-learnfest/playbooks-infra.git and change into the new directory.group_vars/all/main.yml
to 5
(instance_total:
)instance_name:
) of the instances if you want~/.ssh/id_rsa.pub
by default, if this key doesn’t exist or you want to use another key, change ec2_key_pair:
ansible-navigator run cloud-infra.yml
How did ansible-navigator
know which execution environment to use? Have a look at the ansible-navigator.yml
config file…
Goals
ssh -i "~/.ssh/id_rsa" ec2-user@ec2-3-72-65-199.eu-central-1.compute.amazonaws.com
Tips
ansible-navigator run cloud-infra.yml -e remove=true