<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Carters</title>
    <description>The latest articles on DEV Community by Carters (@edmundt).</description>
    <link>https://dev.to/edmundt</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2897012%2Ffe07d71c-7862-49cf-a58d-76da1f73bfcd.png</url>
      <title>DEV Community: Carters</title>
      <link>https://dev.to/edmundt</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/edmundt"/>
    <language>en</language>
    <item>
      <title>Install Ansible-Navigator &amp; Podman on Ubuntu</title>
      <dc:creator>Carters</dc:creator>
      <pubDate>Tue, 25 Feb 2025 12:01:49 +0000</pubDate>
      <link>https://dev.to/edmundt/install-ansible-navigator-podman-on-ubuntu-li6</link>
      <guid>https://dev.to/edmundt/install-ansible-navigator-podman-on-ubuntu-li6</guid>
      <description>&lt;h3&gt;
  
  
  Introduction
&lt;/h3&gt;

&lt;p&gt;Ansible Navigator is a command-line tool that provides a text-based user interface (TUI) for running and managing Ansible playbooks, inventories, and configurations efficiently.&lt;/p&gt;

&lt;p&gt;🔹 &lt;strong&gt;&lt;em&gt;Purpose of Ansible Navigator&lt;/em&gt;&lt;/strong&gt;:&lt;br&gt;
✅ Simplifies Ansible usage with an interactive interface.&lt;br&gt;
✅ Improves debugging by displaying structured outputs.&lt;br&gt;
✅ Manages Ansible collections &amp;amp; execution environments easily.&lt;br&gt;
✅ Enhances playbook execution with real-time feedback.&lt;/p&gt;

&lt;p&gt;It is especially useful when working with automation in containerized environments using &lt;em&gt;Ansible Execution Environments (EE)&lt;/em&gt;. 🚀&lt;/p&gt;
&lt;h3&gt;
  
  
  Requirements for Linux machine
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Either podman or Docker for Linux&lt;/li&gt;
&lt;li&gt;Internet access (during initial installation)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Step 1: Install Ansible-navigator , python
&lt;/h3&gt;

&lt;p&gt;To install Ansible Navigator on Ubuntu, follow these steps:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update Your System&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt update
&lt;span class="nb"&gt;sudo &lt;/span&gt;apt upgrade &lt;span class="nt"&gt;-y&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Install Python3 and Pip&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Ansible Navigator requires Python 3.8 or later. Install Python and Pip if they are not already installed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;python3 python3-pip &lt;span class="nt"&gt;-y&lt;/span&gt;
&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;python3.12-venv libonig-dev

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Install Ansible Navigator&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can install Ansible Navigator using &lt;strong&gt;pip&lt;/strong&gt; . It is recommended to install it in a virtual environment to avoid conflicts with other Python packages.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Option 1: Install Globally
If you want to install Ansible Navigator globally, run:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nb"&gt;sudo &lt;/span&gt;pip3 &lt;span class="nb"&gt;install &lt;/span&gt;ansible-navigator
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Option 2: Install in a Virtual Environment&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Create a virtual environment:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 &lt;span class="nt"&gt;-m&lt;/span&gt; venv ansible3-env
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Activate the virtual environment:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;source &lt;/span&gt;ansible-env/bin/activate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Install Ansible Navigator:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip3 &lt;span class="nb"&gt;install &lt;/span&gt;ansible-navigator
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F24oqedzh65t3onjj3h5p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F24oqedzh65t3onjj3h5p.png" alt="Ansible-navigator Install" width="800" height="332"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;*Verify the Installation &lt;/p&gt;

&lt;p&gt;After installation, verify that Ansible Navigator is installed correctly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ansible-navigator &lt;span class="nt"&gt;--version&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsgzpkbipix48bnezbi5r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsgzpkbipix48bnezbi5r.png" alt="Ansible-navig" width="800" height="181"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;===================================================&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Install Podman
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Ansible Navigator is designed to run Ansible inside a &lt;strong&gt;containerized execution environment&lt;/strong&gt; rather than directly on the local machine. &lt;br&gt;
&lt;strong&gt;Podman&lt;/strong&gt; is used as the default container runtime for executing these &lt;strong&gt;Ansible Execution Environments (EE)&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Reasons Why Podman is Required&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Runs Ansible in a Container&lt;/em&gt; → Ansible Navigator executes playbooks inside a controlled environment, avoiding dependency conflicts.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Rootless Execution&lt;/em&gt; → Unlike Docker, Podman allows running containers without root privileges, improving security.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Lightweight Alternative to Docker&lt;/em&gt; → Works without a background daemon, making it more efficient.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Ansible Navigator may require additional dependencies like ansible-core or podman for certain features. Install them as needed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt update &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-y&lt;/span&gt; podman
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzya795swa409b0dmjbdh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzya795swa409b0dmjbdh.png" alt="podman-edm" width="800" height="171"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Resources&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://podman.io/docs/installation" rel="noopener noreferrer"&gt;https://podman.io/docs/installation&lt;/a&gt;&lt;br&gt;
&lt;a href="https://ansible.readthedocs.io/projects/navigator/installation/" rel="noopener noreferrer"&gt;https://ansible.readthedocs.io/projects/navigator/installation/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>automation</category>
      <category>ansible</category>
      <category>ansiblenavigator</category>
      <category>python312</category>
    </item>
  </channel>
</rss>
