Ansible Automation is really powerful with its filters and functions. It does provide various string manipulation and formatting filters from Jinja and Python. In this article, we are going to see how to Split strings in Ansible. As you might have already guessed, Ansible provides filters/functions to ease our job.[...]
Read moreAuthor: Sarav AK
Ansible Map Examples - Filter List and Dictionaries | Devops Junction
In this article, we are going to see the various use cases of Ansible Map Function or Filter. As Ansible Official documentation claims, All Jinja2 Filters can be used within Ansible. One such function or filter is map It helps us to filter and iterate complex datasets and a list[...]
Read moreAnsible selectattr Example - Filter dictionary and select matching item
Ansible selectattr filter is to select matching objects from the dictionary by applying a test across all the objects in a dictionary/sequence. Ansible selectattr filter is basically an inherited version of Jinja selectattr filter. As Ansible Quotes in their documentation besides the built-in Ansible filters, all JINJA2 filters can be[...]
Read moreHow to use Ansible with Windows Host - Ansible Windows Example
In this article we are going to see how to use Ansible with Windows Host. How to Setup Windows machine for Ansible to be able to connect or remote login just like SSH in Linux. While there is a way to use SSH in windows which can be further leveraged[...]
Read moreFind and Replace Default HTML in IIS Windows - Ansible
In this post we are going to see how to handle the Default webpage vulnerability in IIS with Ansible. The Default WebPage Vulnerability is flagged by Security Analysts and Pen testers cause it can reveal that the server is powered by IIS and it would let the hacker to try[...]
Read moreAnsible Playbook to Delete OLD Log files - Windows | Devops Junction
Ansible for Windows has grown a lot from what it used to be, and the number of modules for windows is also increasing steadily. So Ansible is the right choice going forward for Windows Server Automation tasks. Of course, you need to use Powershell commands here and there. but collectively[...]
Read moreTerraform Create Multiple EC2 with different Configs - for_each and count together
Those who have been using Terraform might already know that you can create multiple numbers of the same resources with the help of count or for_each But What if we want to create multiple resources with different configurations at the same time. For example. we can easily create No of[...]
Read moreTerraform AWS EC2 user_data example - aws_instance| Devops Junction
In this article we are going to see how to create AWS EC2 instance with user_data. While launching AWS Ec2 instances we might want to add some customizations to it like adding a key and executing few shell commands or scripts to make sure they are ready to launch your[...]
Read moreConvert Key=Value Pair into JSON with AWK - Shell | Devops Junction
How to convert a key-value pair into JSON. While there are many ways to programmatically do it. I often find myself doing this type of conversion quite often and I looked out for a simple solution. What can be simpler than having it done with the built-in tools of your[...]
Read moreRun AWS CLI commands on All regions - awsall | Devops Junction
What is awsall CLI tool This is a simple solution we have created to execute your AWS CLI commands on all AWS regions without having to mention --region argument all the time. Let's say you want to list the instances as a table with selected fields but you want to[...]
Read more