{"id":188,"date":"2019-03-11T21:07:17","date_gmt":"2019-03-11T21:07:17","guid":{"rendered":"http:\/\/tonysbit.blog\/?p=188"},"modified":"2019-03-11T21:07:17","modified_gmt":"2019-03-11T21:07:17","slug":"friendly-guide-to-deploying-awx-upstream-project-to-ansible-tower","status":"publish","type":"post","link":"https:\/\/tonysbit.blog\/?p=188","title":{"rendered":"Friendly Guide to deploying AWX (Upstream project to Ansible Tower)"},"content":{"rendered":"\n
AWX is a web-based task engine built on top of ansible. This guide will walk you through installing AWX on a fresh CentOS7 machine. In this guide Docker is used without Docker-compose and the bare-minimum options were selected to get the application up and running. Please refer to the official guide<\/a> for more information or options.<\/p>\n<\/div>\n\n\n\n Virtual Machine Specs<\/strong><\/p>\n All commands are assumed to be run as root.<\/p>\n If you are not already logged in as root, sudo before getting started<\/p>\n Make sure your ‘\/etc\/resolv.conf’ file can resolve dns. Example resolv.conf file<\/p>\n Run<\/p>\n Note<\/em>: If you are still unable to run a update you may need to clear your local cache.<\/p>\n Install Git<\/p>\n Make a new directory and change to that directory<\/p>\n Clone the official git repository to the working directory<\/p>\n Download and install ansible<\/p>\n Unofficial Reference Documentation<\/a><\/p>\n<\/li>\n<\/ol>\n Download yum-utils<\/p>\n Set up the repository<\/p>\n Install the latest version of Docker CE<\/p>\n Official Reference Documentation<\/a><\/p>\n<\/li>\n<\/ol>\n Enable the EPEL repository<\/p>\n Install PIP<\/p>\n Unofficial Reference Documentation<\/a><\/p>\n<\/li>\n Using pip install docker-py<\/p>\nPrerequisites<\/h1>\n
\n
Checklist<\/h1>\n
\n
\n
\n
\n
\n
1. Operating System<\/h1>\n
sudo su -<\/code><\/p>\n
Update OS<\/h2>\n
\n
nameserver 8.8.8.8\n<\/code><\/pre>\n<\/li>\n
yum update<\/code><\/p>\n
yum clean all && yum makecache<\/code><\/p>\n<\/li>\n<\/ol>\n<\/div>\n\n\n\n
<\/figure><\/div>\n\n\n\n
Install Git<\/h2>\n
\n
yum install git<\/code><\/p>\n<\/li>\n<\/ol>\n
Clone AWX<\/h2>\n
\n
cd \/usr\/local<\/code><\/p>\n<\/li>\n
git clone https:\/\/github.com\/ansible\/awx.git<\/code><\/p>\n
cd \/usr\/local\/awx<\/code><\/p>\n<\/li>\n<\/ol>\n
Install Ansible<\/h2>\n
\n
yum install ansible<\/code><\/p>\n
Install Docker<\/h2>\n
\n
sudo yum install -y yum-utils \\\ndevice-mapper-persistent-data \\\nlvm2\n<\/code><\/pre>\n<\/li>\n
sudo yum-config-manager \\\n\t--add-repo \\\n\thttps:\/\/download.docker.com\/linux\/centos\/docker-ce.repo\n<\/code><\/pre>\n<\/li>\n
sudo yum install docker-ce docker-ce-cli containerd.io<\/code><\/p>\n
Install Docker-py<\/h2>\n
\n
yum install epel-release<\/code><\/p>\n<\/li>\n
yum install python-pip<\/code><\/p>\n