In this article we are going to see how to connect to remote hosts using Bastion host or Jump Server for Ansible playbook or Adhoc command execution. In General, We know it is a an easy job to connect to remote hosts from Ansible control machine ( where you execute[...]
Read moreCategory: Ansible
Ansible FirewallD Example - Managing Firewall Rules
Managing firewall rules are a tedious task but indispensable for a secure infrastructure. While all the cloud providers are having their own ACL and firewall rule offerings to protect your cloud resources. Some of us are still using the firewall-d for instance/server-level security. While firewall-cmd is really efficient to manage[...]
Read moreAnsible Copy file or Directory - Local to Remote | Devops Junction
In this article, we are going to see how to copy or SCP files and directories from local to remote. Control machine to the remote server. We are going to learn how to SCP files from local to the remote host Ansible has dedicated modules to support the copy between[...]
Read moreWeblogic JMS Queue Creation WLST script and Ansible Playbook
In this post, we are going to share a WLST jython script and an ansible playbook to create JMS Queues in weblogic 12c Here is the simple jython/python WLST script. The script is simply designed to create and set up a fully functioning JMS Queue in weblogic. It creates all[...]
Read moreAdd users to EC2 instances with SSH Access - Ansible
The objective of this article is to talk about how to add new users to EC2 instances and copy their SSH Keys to grant them SSH access. Consider yourself managing an AWS Infra with 100+ EC2 instances and you have a new hire in your team who should have his[...]
Read moreAnsible Inventory_hostname & ansible_hostname Examples
In this post, we are going to see two built-in variables of ansible mostly used in Ansible playbooks and they are inventory_hostname and ansible_hostname while both these variables are to give you the hostname of the machine. they differ in a way, where it comes from. So in this article,[...]
Read moreAnsible delegate_to Examples - Run task on specific host
Ansible Delegate_to module helps us to execute a specific task in our playbook to run in other host or machine. This process of handing over the control of execution to another host (or) executing a task in another machine is called as delegation and the module delegate_to helps you to[...]
Read moreAnsible Dictionary - How to create and add items to dict
Introduction In this post, we are going to see how to create a dictionary in ansible during the playbook execution dynamically and how to add items or elements to a dictionary. Before going further, let us refresh our memory of knowledge on the dictionaries. Especially python dictionaries because Ansible is[...]
Read moreTerraform import All AWS Security Groups - How to
In this post, we are going to see how to manage existing and already created AWS Security groups with Terraform. The new era of Infrastructure revolution has begun already and we already started provisioning, managing, administrating our Infra as a code with help of Configuration management tools like Ansible, Terraform,[...]
Read moreAnsible Route53 Examples - read add remove update DNS records
In this post, we are going to see how to add and remove records in AWS route53 DNS using ansible. If you are an AWS architect or a developer/devops executive managing your infrastructure hosted in AWS. you might have used the AWS route53 DNS web service. with route53 you can[...]
Read more