<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anirudh Gupta on Medium]]></title>
        <description><![CDATA[Stories by Anirudh Gupta on Medium]]></description>
        <link>https://medium.com/@anirudhgupta_83734?source=rss-60960758b866------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*wbWa4H4a7zvzvinz.jpg</url>
            <title>Stories by Anirudh Gupta on Medium</title>
            <link>https://medium.com/@anirudhgupta_83734?source=rss-60960758b866------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:50:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anirudhgupta_83734/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[AWS: NACL]]></title>
            <link>https://medium.com/@anirudhgupta_83734/aws-nacl-23540b6025cf?source=rss-60960758b866------2</link>
            <guid isPermaLink="false">https://medium.com/p/23540b6025cf</guid>
            <dc:creator><![CDATA[Anirudh Gupta]]></dc:creator>
            <pubDate>Fri, 26 Aug 2022 07:36:35 GMT</pubDate>
            <atom:updated>2022-08-26T07:36:35.012Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jlsWc7cfWC4nnccg" /><figcaption>Photo by <a href="https://unsplash.com/@lazycreekimages?utm_source=medium&amp;utm_medium=referral">Michael Dziedzic</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A network access control list is <strong>optional layer of security</strong> for your VPC that acts as a <strong>firewall </strong>for controlling traffic in and out of one or more <strong>subnets.</strong></p><p><strong>NACL rules and details that you need to know:</strong></p><ul><li>Rules are evaluated from lowest to highest based on ‘rule #’.</li><li>The first rule found that applies to the traffic is immediately applied, regardless of any rules that come after it(have a higher ‘rule #’).</li><li>The ‘default’ NACL rule allows all traffic to the default subnets.</li><li>Any new NACL you create DENY all traffic by default.</li><li>A subnet can only be associated with only one NACL at a time.</li><li>An NACL allows or denies traffic from entering a subnet. Once inside the subnet, other AWS resources (i.e. EC2 instances) may have an additional layer of security(security groups)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23540b6025cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ansible Configuration Precedence]]></title>
            <link>https://medium.com/@anirudhgupta_83734/ansible-configuration-precedence-fa83eeff813c?source=rss-60960758b866------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa83eeff813c</guid>
            <category><![CDATA[configuration-management]]></category>
            <category><![CDATA[precedence]]></category>
            <category><![CDATA[configuration-file]]></category>
            <category><![CDATA[ansible]]></category>
            <dc:creator><![CDATA[Anirudh Gupta]]></dc:creator>
            <pubDate>Wed, 22 Dec 2021 06:03:35 GMT</pubDate>
            <atom:updated>2021-12-22T06:03:35.456Z</atom:updated>
            <content:encoded><![CDATA[<p>There are multiple ways to define the Ansible configuration. In this article, we are going to look at the <strong>precedence</strong> of these various options available.</p><p>We can look at the configuration file picked up by Ansible using the following command:</p><pre>ansible --version</pre><p>Output:</p><pre>~ ansible --version<br>ansible [core 2.11.5]<br>  config file = None<br>  ...</pre><p>We don’t have any configuration file that Ansible is making reference to and hence we see the config file as None.</p><p>We will look at possible Ansible config file locations and Environment variables (from lowest to highest precendence) that can be used to influence config file location.</p><ol><li>/etc/ansible/ansible.cfg (Typically provided through packaged or system installation of Ansible.)</li></ol><p>Here, we will just manually create this file and see how Ansible picks it up.</p><pre>~ mkdir -p /etc/ansible</pre><pre>~ cd /etc/ansible</pre><pre>➜ touch ansible.cfg<br>➜ ansible --version</pre><p>Output:</p><pre>~ ansible --version<br>ansible [core 2.11.5]<br>  config file = /etc/ansible/ansible.cfg<br>  ...</pre><p>Ansible picks up the config file location from None to /etc/ansible/ansible.cfg file.</p><p>2. ~/.ansible.cfg (A hidden file, called .ansible.cfg, in the users home directory)</p><pre>~ touch ~/.ansible.cfg</pre><pre>~ ansible --version</pre><p>Output:</p><pre>~ ansible --version<br>ansible [core 2.11.5]<br>  config file = ~/ansible.cfg</pre><p>Ansible picks up the config file location from ~/.ansible.cfg when both /etc/ansible/ansible.cfg and ~/.ansible.cfg are present.</p><p>3. ./ansible.cfg (An ansible.cfg file in the current directory)</p><p>It enables you to have your related Ansible configuration along side your Ansible execution and all encompassed as one entity.</p><pre>~ mkdir testdir<br>~ cd testdir<br>➜ ansible --version</pre><p>Output:</p><pre>~ ansible --version<br>ansible [core 2.11.5]<br>  config file = ~/ansible.cfg</pre><p>Create a file called ansible.cfg in the current directory.</p><pre># In testdir<br>➜ touch ansible.cfg<br>➜ ansible --version</pre><p>Output:</p><pre>~ ansible --version<br>ansible [core 2.11.5]<br>  config file = ~/testdir/ansible.cfg</pre><p>4. ANSIBLE_CONFIG (Environment Variable , with a filename target) — WINNER !!</p><pre>~ touch example_ansible.cfg<br>~ export ANSIBLE_CONFIG=example_ansible.cfg</pre><p>Ansible picks up this file as its configuration.</p><p>Output:</p><pre>~ ansible --version<br>ansible [core 2.11.5]<br>  config file = ~/example_ansible.cfg</pre><p>Summary:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c7OX3iHkt497YSYTgKtyeg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa83eeff813c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>