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 Linux


Q&A (0)

Notes (0)

Resources (0)

Saving Progress...


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, you'll learn how to install Ansible on your "Ansible Controller" VM that you set up in the previous lessons. Additionally, if you are using a Linux-based host computer, the process to install Ansible directly on your host will be similar. By the end of this lesson, you'll have Ansible installed and ready for automation tasks.

Preparing for Installation

Before installing Ansible, make sure your system is up to date. Open a terminal on your Ansible Controller VM or your Linux host and run the following commands:

sudo apt update
sudo apt upgrade

Installing Ansible

    sudo apt-add-repository ppa:ansible/ansible

    Update Your Package List: After adding the PPA, update your package list to include the newly added repository:

    sudo apt update

    Install Ansible: Now, you can install Ansible with:

    sudo apt install ansible

    This command will install Ansible and any required dependencies.

    Verify the Installation: Once the installation is complete, you can verify it by checking the Ansible version:

    ansible --version

    This command should return the version of Ansible that was installed, confirming that the installation was successful as shown below:

    ansible [core 2.15.8]
      config file = /etc/ansible/ansible.cfg
      configured module search path = ['/home/paulh/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
      ansible python module location = /usr/lib/python3/dist-packages/ansible
      ansible collection location = /home/paulh/.ansible/collections:/usr/share/ansible/collections
      executable location = /usr/bin/ansible
      python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/usr/bin/python3)
      jinja version = 3.0.3
      libyaml = True


    You now have Ansible installed on your Ansible Controller VM, and possibly on your Linux host. With Ansible installed, you're ready to start exploring automation tasks and learning how to manage your IT infrastructure efficiently. In the upcoming lessons, we'll delve into Ansible's basic commands and start writing our first playbooks.

    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
    Notify of
    profile avatar
    Inline Feedbacks
    View all comments