
Explore how Ansible with aws provisions infrastructure such as a vpc network, a lambda function, and bucket with a static website, deploys applications, and integrates with Jenkins to create pipelines.
Ansible architecture centers on a Linux control machine (localhost) and cloud deployment, with configuration, inventory, and playbook files driving two machines, Apache and Ingenix, plus lambda and an extra bucket.
Install Ansible on your Linux control machine by setting up python, pip, and boto support, then verify installation in AWS cloud shell with a test command.
Learn yaml basics for cloud configuration, mastering the three building blocks: scalars, lists, and dictionaries, with practical examples of key-value pairs and indented lists.
Explore yaml basics with practical examples in vscode using the yamoto plugin, validating yaml online, and building yaml files with scalars, booleans, lists, dictionaries, and proper indentation.
Explore the anatomy of an Ansible playbook, detailing plays, hosts, and tasks such as creating instances and a storage bucket, all executed on localhost.
Explore defining a variable in a simple ansible playbook that runs on localhost, with best set to ABC, and a module task that outputs the variable's value.
Explore how ginger expressions in ansible render values, accessing variables and types like strings, numbers, lists, and dictionaries, with double curly braces signaling and outputting the variable value.
Explore jinja filters in ansible, using select to pick odd elements, and apply sum and sort to lists, with practical examples and a look at available filters.
Explore types of variables in Ansible for AWS, including simple, list, and dictionary variables, and learn dynamic definitions, external files, and registering variables to drive playbooks.
Configure a control machine to connect Ansible with AWS by creating an IAM user with programmatic access, obtaining the access key and secret, and exporting these credentials as environment variables.
Explore ansible modules like debug and command. Learn how to access module docs and run modules in playbooks or ad hoc commands on localhost, noting Python-based modules.
Identify core modules included with Ansible and the Galaxy modules from galaxy.ansible.com. Run common core modules on localhost, like command, ping, and copy, to build playbooks.
Learn to run core modules with an Ansible playbook on localhost, using the command and debug modules, and store command output in a register for use with the change expression.
Explore Ansible Galaxy to locate Amazon-provided and community modules for your playbooks, using the content tab and search features. Community modules expand options, including a lambda module.
Install AWS related modules on your local machine by running the download command, locate module parts in the collection, and prepare to use a selected module in the upcoming section.
learn to create an aws instance with ansible using the aws module. write a short yaml playbook on a local host with image id and micro instance, then run it.
Explore using an Ansible module to create two AWS instances, wait for them to be ready, and ensure idempotent behavior when rerunning the playbook.
illustrates using the EC2 module with Ansible on AWS, applying count and exact_count to create or remove instances by tag, then syncs to the desired count.
Create a VPC with Ansible using the easy_vpc module. Attach an internet gateway, configure two subnets, and implement a custom nacl and route table, then verify resources in AWS.
This is an introductory course on how to use Ansible with AWS .In this course i have used cloud shell to demonstrate all my example .
To get the best out of this course you need to have
1.A basic introduction to AWS.
2. A IAM User and key and password credentials
3 AWS Console along with cloud shell (if you do not wish to use cloud shell you can use any linux distro with gcloud cli installed )
4.An basic understanding of Ansible
What is Ansible ?
Ansible is a radically simple IT automation engine that automates cloud provisioning, configuration management, application deployment, intra-service orchestration, and many other IT needs.
In this course we will be using the power of Ansible to create infrastructure in GCP
I will be covering the following topics in this course
1. A brief introduction to Ansible
2.Create an instance using AWS module
3.Create a simple Architecture using various aspects of ansible
4.Inventory system in AWS .Static inventory file as well as dynamic inventory file
6.Conditionals the When statement
7.gather_facts and inventory file
Also please do check out my other courses in udemy
Please do not forget to review my course and happy learning
Thanks in advance