Automation With Ansible Playbooks
Tags: Ansible
Ansible to automate local and cloud configuration management tasks with Playbooks
Last updated 2022-01-10 | 4.5
- Ansible Engine with Ad-hoc commands- Implementation of Ansible Playbooks from basic level to advanced level
- Ansible Installation and Configuration with directory structure and Architecture
What you'll learn
* Requirements
* PC or Laptop with internet Connection* Knowledge to create servers from VMvare/Any Cloud
Description
- Ansible Engine with Ad-hoc commands
- Implementation of Ansible Playbooks from basic level to advanced level
- Ansible Installation and Configuration with directory structure and Architecture
- Ansible Ad-hoc commands
- Ansible Facts and Variables
- Ansible Inventories (Static and Dynamic Inventoryies)
- How to work with Mangaed nodes if manged nodes are not installed with Python
- Passwrod Authentication setup and explanation
- Introduction to Ansible Playbooks
- Operations on strings and numbers using Playbooks (Filters and Methods )
- Operators to work with tasks
- Conditional Statements, loops, tags and handlers
- Block module and its usage
- Template module variables, conditional statements and loops
- Ansible Valut Concept.
Course content
25 sections • 70 lectures
Preview of the course: Automation using Ansible - Step by Step Preview 04:25
Required PPTs for this Ansible Course Preview 00:05
Introduction: Story before Ansible or Any other configuration Management tools Preview 09:46
Ansible Architecture Preview 10:44
Ansible Installation and Configuration Part-1 (Installation ) Preview 12:56
Install Ansible on CentOS-7
Run the following commands from root: (just use sudo su - )
================================
python --version
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install ansible
ansible --version
cd /etc/ansible/
ls -lrt
Ansible Installation and Configuration Part-2 (Configuration) Preview 43:09
Ansible Directory Structures Preview 20:13
How to disable host key chekcing ? Preview 12:00
Inventory file with Groups and Group of Groups Preview 20:21
Different locations of ansible.cfg file with priority Preview 08:02
you can export ANSIBLE_CONFIG as below
example:
export ANSIBLE_CONFIG=/tmp/ansible.cfg
and now if you run ansible it will pic configuration file as /tmp/ansible.cfg (Highest priority is for ANSIBLE_CONFIG file)
Review on Ansible Architecture Preview 06:48
Installing Ansible Engine on RHEL 8 Preview 24:30
Introduction to Ad-hoc commands | Basic syntax for Ansible Ad-hoc commands Preview 22:13
ansible all -m ping
ansible db:web_server -m ping
------------------------------------
ansible db:web_server -m shell -a "uptime"
ansible db:web_server -m shell -a "free -m"
--------------------------------------------
ansible -i prod_inv -m shell -a "uptime"
ansible -i prod_inv -m shell -a "free -m"
------------------------------------------
ansible adhoc command syntax:
-----------------------------
ansible [-i req_inventory_file ] server_name:group1:group2 -m module [-a argument_value]
How Ansible Works ? (Executing Ad-hoc commands or Playbooks ) Preview 14:37
ANSIBLE_KEEP_REMOTE_FILES=1
keeping forks = 1 in ansible.cfg