S3 has become the cheap and best object storage and it is used widely across enterprises and products, to securely save and access data over the internet. We have various ways to interact with the S3 bucket, to upload, download and copy objects back and forth to S3. SDKs ([...]
Read moreCategory: Ansible
Ansible Split Examples - With String, List and File Content
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 moreAnsible 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 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 moreAnsible Find multiple files with pattern and replace
In this post we are going we are going to see how to find a list of files containing a text or a pattern and replace them at once. As you know I have written a dedicated and brief articles on both Ansible find and replace modules with many examples.[...]
Read moreFind EC2 instances using EFS - EFS Usage Report
Let's suppose that you have an infrastructure of 1000 hosts and you want to know how many of them use EFS - Elastic File System or traditionally known as Network File System Or Let's just say that you have 100 EFS File systems in your AWS account and you want[...]
Read more