Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Install Ansible on Ubuntu 18.04 with AWX

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 it’s 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 user name of ‘admin’ and password of ‘password’.

We now have Ansible installed with AWX.

More Ansible

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

Conclusion

I hope you have enjoyed this post.

If you did then please share and comment.

Subscribe to the AdminTome Blog mailing list

* indicates required

Email Format


The post Install Ansible on Ubuntu 18.04 with AWX appeared first on AdminTome Blog.



This post first appeared on AdminTome, please read the originial post: here

Share the post

Install Ansible on Ubuntu 18.04 with AWX

×

Subscribe to Admintome

Get updates delivered right to your inbox!

Thank you for your subscription

×