<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ansible on Samarthya</title><link>https://samarthya.me/categories/ansible/</link><description>Recent content in Ansible on Samarthya</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© Samarthya 2018-2026. All rights reserved.</copyright><lastBuildDate>Fri, 26 Jul 2024 12:00:00 +0000</lastBuildDate><atom:link href="https://samarthya.me/categories/ansible/index.xml" rel="self" type="application/rss+xml"/><item><title>Privilege Escalation: How a `remote_user` and a `become_user` works</title><link>https://samarthya.me/posts/ansible-privilege-escalation/</link><pubDate>Fri, 26 Jul 2024 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/ansible-privilege-escalation/</guid><description>&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt=""&#10; width="600"&#10; height="600"&#10; src="https://samarthya.me/posts/ansible-privilege-escalation/image-ansible.jpg"&#10; srcset="https://samarthya.me/posts/ansible-privilege-escalation/image-ansible.jpg 800w, https://samarthya.me/posts/ansible-privilege-escalation/image-ansible.jpg 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://samarthya.me/posts/ansible-privilege-escalation/image-ansible.jpg"&gt;&lt;/figure&gt;&#10;&lt;p&gt;One of its Ansible’s features is the ability to execute tasks with elevated privileges, often necessary for managing system configurations. This process is known as privilege escalation.&lt;/p&gt;</description></item><item><title>Non root `podman` and `molecule`</title><link>https://samarthya.me/posts/non-root-podman-and-molecule/</link><pubDate>Tue, 13 Feb 2024 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/non-root-podman-and-molecule/</guid><description>&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt="Molecule testing an Ansible role through podman-docker and the user&amp;rsquo;s podman.socket, with containers running as non-root"&#10; width="1200"&#10; height="630"&#10; src="https://samarthya.me/posts/non-root-podman-and-molecule/molecule_hu_c9c0ad608e5dc687.png"&#10; srcset="https://samarthya.me/posts/non-root-podman-and-molecule/molecule_hu_c9c0ad608e5dc687.png 800w, https://samarthya.me/posts/non-root-podman-and-molecule/molecule.png 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://samarthya.me/posts/non-root-podman-and-molecule/molecule.png"&gt;&lt;figcaption&gt;Recreated in October 2026 from the post; the original image was lost&lt;/figcaption&gt;&lt;/figure&gt;&#10;&lt;p&gt;On my &lt;code&gt;Centos8&lt;/code&gt; I was facing issue when I was trying to run Molecule on a centos machine which is running &lt;code&gt;podman&lt;/code&gt; as a non root user. Also, I am using the driver – &lt;code&gt;docker&lt;/code&gt; and not &lt;code&gt;podman&lt;/code&gt;, so to overcome the aliases and references issues I have installed &lt;code&gt;podman-docker&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Async/Poll &amp; Notify: Ansible Long running process</title><link>https://samarthya.me/posts/async-poll-notify-ansible-long-running-process/</link><pubDate>Fri, 24 Mar 2023 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/async-poll-notify-ansible-long-running-process/</guid><description>&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt="Ansible long-running task with async 300 and poll 60, registered job ID, async_status until finished, and debug output"&#10; width="1200"&#10; height="630"&#10; src="https://samarthya.me/posts/async-poll-notify-ansible-long-running-process/as-async_hu_5a8baddeb9db8fb4.png"&#10; srcset="https://samarthya.me/posts/async-poll-notify-ansible-long-running-process/as-async_hu_5a8baddeb9db8fb4.png 800w, https://samarthya.me/posts/async-poll-notify-ansible-long-running-process/as-async.png 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://samarthya.me/posts/async-poll-notify-ansible-long-running-process/as-async.png"&gt;&lt;figcaption&gt;Recreated in October 2026 from the post; the original image was lost&lt;/figcaption&gt;&lt;/figure&gt;&#10;&lt;p&gt;ASYNC &amp;amp; Poll&lt;/p&gt;</description></item></channel></rss>