Category Archives: Ansible

Working with Azure using Ansible

Ansible includes a suite of modules for interacting with “Azure Resource Manager”, giving you the tools to easily create and orchestrate infrastructure on the Microsoft Azure Cloud. Step 1 – Requirements – Azure SDK in Ansible Control Server Using the Azure Resource Manager modules requires having specific Azure SDK modules installed on the host running… Read More »

Anatomy of Ansible play defined!

A Play performs one or more Tasks against one or more Managed Nodes. Each playbook is composed of one or more ‘plays’ in a list. A play map a group of hosts to some well defined roles, represented by tasks. Plays run in the order specified: top to bottom. host defines the target machines: one… Read More »

Ansible Role Project 1

Step 1 – Create a role which has following specification. Install a webserver httpd # use role/vars/ Add cond…httpd should be done only if RHEL. Copy a index.j2 into /var/www/html # Use Template Copy a httpd.j2 into /etc/httpd/conf/httpd.conf and change the port from 80 to 8080 # Use Template Write a handler for httpd.conf changes… Read More »

Ansible Tower Administration Guide

Ansible Tower Support – If you have paid membership, you can contact the support team at https://access.redhat.com How to understand Ansible Tower Subscription Types Self-Support Enterprise: Standard Enterprise: Premium https://docs.ansible.com/ansible-tower/latest/html/administration/license-support.html#subscription-types Trial licenses for Ansible Tower are available at http://ansible.com/license To acquire a license & Pricing for additional Managed Nodes, visit: http://www.ansible.com/pricing/ How to Stopping/Starting/Restarting Ansible… Read More »

How to access Ansible remote machine using SSH user and key?

How to access Ansible remote machine using SSH user and key? There are following ways, you can autheticte linux remote server using Ansible. Method 1 – Password Less authentication SSH Passwordless Login Using SSH Keygen in 5 Easy Steps If You want to automate this process using Ansible in mutiple machine, follow this https://everythingshouldbevirtual.com/ansible-ssh-key-distribution-for-password-less-ssh/ Method… Read More »