0%

0/1 Lessons

Course Introduction

• 19min

0 / 2 lessons complete

IT Lab Setup

• 31min

0 / 3 lessons complete

Installing Ansible

• 57min

0 / 4 lessons complete

Managing your Ansible Inventory

• 2hr 45min

0 / 8 lessons complete

Ansible Basics

• 2hr 54min

0 / 9 lessons complete

Ansible Roles

• 2hr 38min

0 / 8 lessons complete

Ansible Galaxy

• 2hr 28min

0 / 6 lessons complete

Ansible Facts, Variables, Passwords and Templates

• 3hr 20min

0 / 9 lessons complete

Advanced Ansible Playbook Creation

• 2hr 23min

0 / 8 lessons complete

Course Conclusion

• 11min

0 / 1 lessons complete

Installing Ansible on Windows Subsystem for Linux (WSL)

Instructions

Q&A (0)

Notes (0)

Resources (0)

Saving Progress...

Resources

There are no resources for this lesson.

Notes can be saved and accessed anywhere in the course. They also double as bookmarks so you can quickly review important lesson material.

Create note

In this lesson, we'll guide Windows users through the process of installing Ansible on Ubuntu using the Windows Subsystem for Linux (WSL). By the end of this lesson, you'll have a functional Ansible environment on your Windows machine through an Ubuntu subsystem. This setup is ideal for Windows users who want to learn and use Ansible without the need for a separate Linux machine.

Understanding WSL and Its Benefits

Windows Subsystem for Linux (WSL) is a compatibility layer developed by Microsoft that enables you to run Linux binary executables natively on Windows 10 and Windows 11. WSL provides a Linux-compatible kernel interface developed by Microsoft, eliminating the need for a virtual machine or dual-boot setup. It's an excellent tool for developers who need to run Linux-based applications on Windows.

Step 1: Enabling WSL on Windows

Before installing Ubuntu and Ansible, ensure that WSL is enabled on your Windows system.

wsl --install

    Step 2: Installing Ubuntu on WSL

    Once WSL is enabled, you can install Ubuntu from the Microsoft Store:

    Step 3: Updating Ubuntu

    It's essential to update Ubuntu to ensure you have all the latest packages and security updates.

    sudo apt update && sudo apt upgrade

    Step 4: Installing Ansible

    With Ubuntu up to date, you can now install Ansible.

      sudo apt install software-properties-common
        sudo add-apt-repository --yes --update ppa:ansible/ansible
          sudo apt install ansible

          Verifying the Installation

          To verify that Ansible has been installed correctly, run:

          ansible --version

          The output should display the version of Ansible installed.

          Conclusion

          Congratulations! You now have Ansible installed on Ubuntu via WSL on your Windows system. This setup allows you to use Ansible in a Linux environment while still operating in a Windows ecosystem. This is particularly useful for Windows users looking to explore Ansible's capabilities in a familiar setting.

          Server Academy Members Only

          Sorry, this lesson is only available to Server Academy Full Access members. Become a Full-Access Member now and you’ll get instant access to all of our courses.

          0 0 votes
          Lesson Rating
          Subscribe
          Notify of
          profile avatar
          0 Comments
          Inline Feedbacks
          View all comments