DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Ansible and the Pre-Container Arts
  • Automating Unix Security Across Hybrid Clouds
  • Cloud Automation Excellence: Terraform, Ansible, and Nomad for Enterprise Architecture
  • My Dive into Local LLMs, Part 1: From Alexa Curiosity to Homegrown AI

Trending

  • Rebuilding Elasticsearch Under Load: Unsafe Watermarks and a Sampling Blind Spot
  • Data Integration Landscape 2026: Event Streaming, API, and Batch in the Era of Agentic AI
  • How to Format Articles for DZone
  • Fix the Target, Precompute Once: A Backend-Free Word-Ladder Solver With a BFS Distance Field

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  1. DZone
  2. Coding
  3. Frameworks
  4. Install Ansible on Ubuntu 18.04 With AWX

Install Ansible on Ubuntu 18.04 With AWX

Want to get Ansible set up on Ubuntu for your configuration management? Let's see how to install it using the AWX web-based interface.

By 
Bill Ward
·
Oct. 24, 18 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
24.9K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

In this post, we will install Ansible on Ubuntu 18.04 with the AWX web-based interface for Ansible. Ansible is a top config management solution.

Ansible is the leading configuration management solution according to StackShare.

It provides agentless system management and configuration that is simple to use, easy to learn, flexible and powerful.

We will install Ansible on its own server and we will also install AWX which is a web-based interface to Ansible.

Getting Started

To begin, we need a fresh install of Ubuntu Server 18.04.1.

Next, perform all the updates and reboot.

apt update && apt upgrade -y
reboot


Next, we need to enable the universe repositories.

Open /etc/apt/sources.list and add the ‘universe’ to the end of all the lines.

deb http://archive.ubuntu.com/ubuntu bionic main universe
deb http://archive.ubuntu.com/ubuntu bionic-security main universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe


Save and exit.

Update apt.

apt update


We are now ready to install Ansible.

Install Ansible

On Ubuntu, we install Ansible from a PPA.

Run the following commands to install Ansible

apt-add-repository --yes --update ppa:ansible/ansible


Finally, install Ansible.

apt install ansible -y


Now that Ansible is installed, we need to install and configure AWX the web-based interface for Ansible.

Install AWX

First, we need to install a few prerequisite packages.

Install Docker:

apt install docker.io


Install PIP and the Python Docker SDK.

apt install python-pip -y
pip install docker


Next, we need to install Node and NPM.

apt install nodejs npm -y


We need to use NPM to update itself because the version that is installed is too old for AWX.

npm install npm --global


We can now install AWX.

First, clone the git repository.

git clone https://github.com/ansible/awx.git


Next, run the installer.

cd awx/installer
ansible-playbook -i inventory install.yml


After a few minutes, ansible will finish installing AWX.

This created several docker containers on the local host.

There are many more options you can use to deploy AWX. For reference, check out the AWX install documentation on GitHub.

Once ansible is complete the AWX container will take a couple of minutes before it is ready.

You can access AWX at the following URL

http://{your_server}


You should see that AWX is upgrading.

When it is completed you will see the login screen.

Login with the default username of ‘admin’ and password of ‘password’.

We now have Ansible installed with AWX.

More Ansible

If you would like to know more check out the Continuous Delivery Using Docker and Ansible course at Pluralsight. They have a free 10-day trial so get started today.

Ansible (software) ubuntu

Published at DZone with permission of Bill Ward. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Ansible and the Pre-Container Arts
  • Automating Unix Security Across Hybrid Clouds
  • Cloud Automation Excellence: Terraform, Ansible, and Nomad for Enterprise Architecture
  • My Dive into Local LLMs, Part 1: From Alexa Curiosity to Homegrown AI

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook