
Before going ahead with this, make sure you have one CC or Debit Card handy and PAN or other Tax related document for free account or other type of account.
Explore Ansible architecture for on-premises and AWS cloud environments, as introduced in the course Ansible Hands On in On-Premises & AWS Cloud Environments.
Discover the requirements for control and remote Ansible servers across on-premises and AWS cloud environments, and learn how to set up reliable, scalable automation.
Set up an Ansible control server and manage nodes across on-premises and AWS cloud environments.
Explore Ansible inventory and playbook modules, learn local and remote execution, and practical hands-on techniques for managing on-premises and AWS cloud environments.
Explore essential Ansible terminologies for managing on-premises and AWS cloud environments in a hands-on course.
There is two options now:
1. You can do Ansible example with: Vagrant + VirtualBox + CentOS7 and Ansible Control and Remote Server.
2. You can do Ansibel example with: Ansible and AWS BOTO which is in AWS Cloud Environment.
Note: I will suggest to do in local PC only.
Install Gitbash to support hands-on Ansible work in on-premises and AWS cloud environments, enabling streamlined command access and workflow setup.
How to install Vagrant in Windows 10?
How to install VirtualBox in Windows 10?
List of Vagrant commands needed for our demo:
vagrant init
vagrant up
vagrant provision
vagrant ssh
vagrant halt
vagrant destroy
CentOS 7 Box I downloaded from: https://app.vagrantup.com/centos/boxes/7/
Execute this command in your windows for clean-up:
vagrant destroy
Note: unzip CentOS7.zip file in your C:\ or D:\ drive or as appropriate.
SSH Commands:
ssh vagrant@192.168.10.5 -i .vagrant\machines\ansible_control\virtualbox\private_key
ssh vagrant@192.168.10.6 -i .vagrant\machines\webserver\virtualbox\private_key
Execute this command in your windows for clean-up:
vagrant destroy
cd C:\AppDemo\Vagrant\AnsibleToWebServer
vagrant up
ssh vagrant@192.168.10.5
cd /vagrant/
sudo chmod 400 ~/.ssh/id_rsa
ansible-playbook -i hosts playbook.yml
vagrant destroy
vagrant destroy
Use this command:
ansible localhost -m setup
ansible-playbook -i hosts playbook.yml
ansible-playbook -i hosts playbook.yml -v
ansible-playbook -i hosts playbook.yml -vv
ansible-playbook -i hosts playbook.yml -vvv
ansible-playbook -i hosts playbook.yml -vvvv
ssh -o StrictHostKeyChecking=no vagrant@192.168.10.5
ssh -o StrictHostKeyChecking=no vagrant@192.168.10.6
chmod 400 ~/.ssh/id_rsa
ansible-playbook -i hosts playbook.yml -vv
Use these commands:
ssh -o StrictHostKeyChecking=no vagrant@192.168.10.5
ssh -o StrictHostKeyChecking=no vagrant@192.168.10.6
chmod 400 ~/.ssh/id_rsa
ansible-playbook -i hosts playbook.yml -vv
Commands:
sudo ansible-galaxy install geerlingguy.java
ansible-playbook -i hosts playbook.yml -vv
ansible-galaxy init apache
ansible-galaxy search <role>
ansible-galaxy search mysql
ansible-galaxy list
Just run the command by sudo as you done thave access of /etc/ansible/roles
sudo ansible-galaxy install user.role_name
Please feel free let me know if you have any question on this lecture.
In this Lecture, we are going to talk about:
hello_world Ansible module example
person_name Ansible modue example
AWS Account Creation.
Learn aws iam in on-premises and aws cloud environments with hands-on labs using Ansible today.
Learn how to configure AWS MFA and manage access and secret keys in on-premises and AWS cloud environments with hands-on Ansible.
Explore AWS EC2 security groups, AMI selection, and key management to secure cloud and on-premises environments with Ansible.
Learn to convert an ec2 instance into an ami and associate an elastic ip, bridging on-premises and aws cloud environments.
For this error just:
#place your key and value in it
export AWS_ACCESS_KEY_ID='AKIAUGHOY'
export AWS_SECRET_ACCESS_KEY='AmNbrLzbcTH'
Refer: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html
URL: https://aws.amazon.com/blogs/apn/getting-started-with-ansible-and-dynamic-amazon-ec2-inventory-management/
Explore hands-on Ansible practices for creating and destroying VPCs in on-premises and AWS cloud environments.
In this course, you will gain hands-on, practical knowledge of Ansible, one of the most powerful automation tools used in DevOps and cloud environments today. The course is designed for beginners as well as professionals who want to automate infrastructure, configuration management, and application deployment efficiently.
You will start by learning Ansible installation using multiple approaches and across different environments. This includes setting up Ansible with Vagrant and VirtualBox, installing it on CentOS 7 systems, and configuring Ansible in a real AWS Cloud environment. This ensures you understand how Ansible works in both local and cloud-based infrastructures.
Next, the course dives deep into Ansible architecture, covering core components such as the Inventory file, Playbooks, Modules, SSH-based connectivity, and execution flow. Each concept is explained in detail with real-world examples so you can clearly understand how Ansible operates behind the scenes.
You will also explore Ansible variables, dynamic inventories, playbook structuring, error handling, and custom module creation, supported by demos and practical labs. These sessions focus on writing clean, reusable, and production-ready automation code.
Additionally, the course provides a solid AWS overview and teaches how to use Ansible with BOTO to provision and manage AWS resources programmatically. This helps you automate cloud infrastructure using Ansible modules effectively.
Kindly review the lecture headings for a detailed breakdown of topics covered. By the end of this course, you will be confident in using Ansible for real-world automation and cloud provisioning tasks.