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
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workkloads.

Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • Ansible and the Pre-Container Arts
  • Streamlining Event Data in Event-Driven Ansible
  • Clean Up Event Data in Ansible Event-Driven Automation
  • Monitoring journald Logs With Event-Driven Ansible

Trending

  • Streamlining Event Data in Event-Driven Ansible
  • Mastering Fluent Bit: Installing and Configuring Fluent Bit on Kubernetes (Part 3)
  • Building Enterprise-Ready Landing Zones: Beyond the Initial Setup
  • Kubeflow: Driving Scalable and Intelligent Machine Learning Systems
  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 user avatar
Bill Ward
·
Oct. 24, 18 · Tutorial
Likes (5)
Comment
Save
Tweet
Share
24.5K Views

Join the DZone community and get the full member experience.

Join For Free

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, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Ansible and the Pre-Container Arts
  • Streamlining Event Data in Event-Driven Ansible
  • Clean Up Event Data in Ansible Event-Driven Automation
  • Monitoring journald Logs With Event-Driven Ansible

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

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 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!