{"id":3222,"date":"2018-04-05T17:39:30","date_gmt":"2018-04-05T13:39:30","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/centos-ansible-awx-installation\/"},"modified":"2018-04-05T17:39:30","modified_gmt":"2018-04-05T13:39:30","slug":"how-to-install-ansible-awx-on-centos-7","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/how-to-install-ansible-awx-on-centos-7\/","title":{"rendered":"How to Install Ansible AWX on CentOS 7"},"content":{"rendered":"<p>In the <a href=\"https:\/\/www.howtoforge.com\/tutorial\/how-to-install-ansible-awx-with-docker-on-centos\/\" target=\"_blank\" rel=\"noopener\">previous tutorial<\/a>,\u00a0I showed you how to deploy Ansible AWX via docker. In the meantime, I&#8217;ve found two projects\u00a0that build rpm packages for AWX. So in this tutorial,\u00a0I will show you how to install\u00a0Ansible AWX from RPM\u00a0 files on CentOS 7. Ansible AWX is the OpenSource version of the Ansible Tower software.<\/p>\n<p>I will be using 3 servers with\u00a0<a href=\"https:\/\/www.howtoforge.com\/tutorial\/centos-7-minimal-server\/\" target=\"_blank\" rel=\"noopener\">CentOS 7 minimal installation<\/a> and SELinux in permissive mode.<\/p>\n<ul>\n<li>192.168.1.25 AWX Server<\/li>\n<li>192.168.1.21 client1<\/li>\n<li>192.168.1.22 client2<\/li>\n<\/ul>\n<h2 id=\"minimum-system-requirements-for-awx-server\">Minimum System Requirements for AWX Server<\/h2>\n<ul>\n<li>At least 4GB of memory<\/li>\n<li>At least 2 cpu cores<\/li>\n<li>At least 20GB of space<\/li>\n<li>Running Docker, Openshift, or Kubernetes<\/li>\n<\/ul>\n<p>Check the\u00a0SELinux configuration.<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"b0c2dfdfc4f0d1c7c8\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# sestatus&#13;\nSELinux status: enabled&#13;\nSELinuxfs mount: \/sys\/fs\/selinux&#13;\nSELinux root directory: \/etc\/selinux&#13;\nLoaded policy name: targeted&#13;\nCurrent mode: permissive&#13;\nMode from config file: permissive&#13;\nPolicy MLS status: enabled&#13;\nPolicy deny_unknown status: allowed&#13;\nMax kernel policy version: 28&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"04766b6b704465737c\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]#&#13;\n<\/pre>\n<p>Add the host entries in<\/p>\n<pre>\/etc\/hosts<\/pre>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"85f7eaeaf1c5e4f2fd\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# cat \/etc\/hosts&#13;\n192.168.1.25 awx.sunil.cc awx&#13;\n192.168.1.21 client1.sunil.cc client1&#13;\n192.168.1.22 client2.sunil.cc client2&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"0d7f6262794d6c7a75\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]#&#13;\n<\/pre>\n<p>Add the firewall rules<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"bbc9d4d4cffbdaccc3\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl enable firewalld&#13;\nCreated symlink from \/etc\/systemd\/system\/dbus-org.fedoraproject.FirewallD1.service to \/usr\/lib\/systemd\/system\/firewalld.service.&#13;\nCreated symlink from \/etc\/systemd\/system\/multi-user.target.wants\/firewalld.service to \/usr\/lib\/systemd\/system\/firewalld.service.&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"aedcc1c1daeecfd9d6\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl start firewalld&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"36445959427657414e\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# firewall-cmd --add-service=http --permanent;firewall-cmd --add-service=https --permanent&#13;\nsuccess&#13;\nsuccess&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"cbb9a4a4bf8baabcb3\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl restart firewalld&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"3d4f5252497d5c4a45\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]#&#13;\n<\/pre>\n<p>Enable CentOS EPEL repository.<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"c0b2afafb480a1b7b8\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# yum install -y epel-release&#13;\n<\/pre>\n<p>We need postgresql 9.6 for AWX installation.<\/p>\n<p>Enable postgreSQL repo.<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"681a07071c28091f10\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# yum install -y https:\/\/download.postgresql.org\/pub\/repos\/yum\/9.6\/redhat\/rhel-7-x86_64\/pgdg-centos96-9.6-3.noarch.rpm&#13;\n<\/pre>\n<p>Installing postgreSQL.<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"681a07071c28091f10\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# yum install postgresql96-server -y&#13;\n<\/pre>\n<p>Installing the other necessary rpms.<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"47352828330726303f\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# yum install -y rabbitmq-server wget memcached nginx ansible&#13;\n<\/pre>\n<h2 id=\"installing-ansible-awx\">Installing Ansible AWX<\/h2>\n<p>Adding the AWX repo.<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"56243939221637212e\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# wget -O \/etc\/yum.repos.d\/awx-rpm.repo https:\/\/copr.fedorainfracloud.org\/coprs\/mrmeee\/awx\/repo\/epel-7\/mrmeee-awx-epel-7.repo&#13;\n<\/pre>\n<p>Installing the rpm<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"14667b7b605475636c\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# yum install -y awx&#13;\n<\/pre>\n<p>Intializing the database<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"c5b7aaaab185a4b2bd\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# \/usr\/pgsql-9.6\/bin\/postgresql96-setup initdb&#13;\nInitializing database ... OK&#13;\n&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"53213c3c271332242b\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]#&#13;\n<\/pre>\n<p>Starting the Rabbitmq Service<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"74061b1b003415030c\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl start rabbitmq-server&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"bdcfd2d2c9fddccac5\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl enable rabbitmq-server&#13;\nCreated symlink from \/etc\/systemd\/system\/multi-user.target.wants\/rabbitmq-server.service to \/usr\/lib\/systemd\/system\/rabbitmq-server.service.&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"691b06061d29081e11\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]#&#13;\n<\/pre>\n<p>Starting PostgreSQL Service<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"3b4954544f7b5a4c43\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl enable postgresql-9.6&#13;\nCreated symlink from \/etc\/systemd\/system\/multi-user.target.wants\/postgresql-9.6.service to \/usr\/lib\/systemd\/system\/postgresql-9.6.service.&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"d1a3bebea591b0a6a9\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl start postgresql-9.6&#13;\n<\/pre>\n<p>Starting Memcached Service<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"9be9f4f4efdbfaece3\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl enable memcached&#13;\nCreated symlink from \/etc\/systemd\/system\/multi-user.target.wants\/memcached.service to \/usr\/lib\/systemd\/system\/memcached.service.&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"1b6974746f5b7a6c63\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl start memcached&#13;\n<\/pre>\n<p>Creating Postgres user<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"ea9885859eaa8b9d92\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# sudo -u postgres createuser -S awx&#13;\ncould not change directory to \"\/root\": Permission denied&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"681a07071c28091f10\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]#&#13;\n<\/pre>\n<p class=\"highlight\">ignore the error<\/p>\n<p>Creating the database<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"790b16160d39180e01\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# sudo -u postgres createdb -O awx awx&#13;\ncould not change directory to \"\/root\": Permission denied&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"daa8b5b5ae9abbada2\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]#&#13;\n<\/pre>\n<p class=\"highlight\">ignore the error<\/p>\n<p>Importing the data into Database<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"47352828330726303f\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# sudo -u awx \/opt\/awx\/bin\/awx-manage migrate&#13;\n<\/pre>\n<p>Initializing the configuration for\u00a0AWX<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"f3819c9c87b392848b\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# echo \"from django.contrib.auth.models import User; User.objects.create_superuser('admin', '<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"2f5d40405b6f43404c4e4347405c5b\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a>', 'password')\" | sudo -u awx \/opt\/awx\/bin\/awx-manage shell&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"f785989883b796808f\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# sudo -u awx \/opt\/awx\/bin\/awx-manage create_preload_data&#13;\nDefault organization added.&#13;\nDemo Credential, Inventory, and Job Template added.&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"f785989883b796808f\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# sudo -u awx \/opt\/awx\/bin\/awx-manage provision_instance --hostname=$(hostname)&#13;\nSuccessfully registered instance awx.sunil.cc&#13;\n(changed: True)&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"b4c6dbdbc0f4d5c3cc\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# sudo -u awx \/opt\/awx\/bin\/awx-manage register_queue --queuename=tower --hostnames=$(hostname)&#13;\nCreating instance group tower&#13;\nAdded instance awx.sunil.cc to tower&#13;\n(changed: True)&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"04766b6b704465737c\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]#&#13;\n<\/pre>\n<h2 id=\"configure-nginx\">Configure Nginx<\/h2>\n<p>Take the backup of nginx.conf<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"b2c0ddddc6f2d3c5ca\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# cd \/etc\/nginx\/&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"62100d0d162203151a\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> nginx]# pwd&#13;\n\/etc\/nginx&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"3a4855554e7a5b4d42\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> nginx]# cp nginx.conf nginx.conf.bkp&#13;\n<\/pre>\n<p>Replace the nginx conf file<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"7d0f1212093d1c0a05\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> nginx]# wget -O \/etc\/nginx\/nginx.conf https:\/\/raw.githubusercontent.com\/sunilsankar\/awx-build\/master\/nginx.conf&#13;\n<\/pre>\n<p>Enable and start nginx service<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"a0d2cfcfd4e0c1d7d8\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl start nginx&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"fa8895958eba9b8d82\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl enable nginx&#13;\n<\/pre>\n<p>Start the awx services<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"e5978a8a91a584929d\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl start awx-cbreceiver&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"087a67677c48697f70\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl start awx-celery-beat&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"41332e2e3501203639\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl start awx-celery-worker&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"3c4e5353487c5d4b44\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl start awx-channels-worker&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"1c6e7373685c7d6b64\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl start awx-daphne&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"07756868734766707f\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl start awx-web&#13;\n<\/pre>\n<p>Make sure the service is started during restart<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"8ffde0e0fbcfeef8f7\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl enable awx-cbreceiver&#13;\nCreated symlink from \/etc\/systemd\/system\/multi-user.target.wants\/awx-cbreceiver.service to \/usr\/lib\/systemd\/system\/awx-cbreceiver.service.&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"91e3fefee5d1f0e6e9\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl enable awx-celery-beat&#13;\nCreated symlink from \/etc\/systemd\/system\/multi-user.target.wants\/awx-celery-beat.service to \/usr\/lib\/systemd\/system\/awx-celery-beat.service.&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"c4b6ababb084a5b3bc\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl enable awx-celery-worker&#13;\nCreated symlink from \/etc\/systemd\/system\/multi-user.target.wants\/awx-celery-worker.service to \/usr\/lib\/systemd\/system\/awx-celery-worker.service.&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"f88a97978cb8998f80\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl enable awx-channels-worker&#13;\nCreated symlink from \/etc\/systemd\/system\/multi-user.target.wants\/awx-channels-worker.service to \/usr\/lib\/systemd\/system\/awx-channels-worker.service.&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"ccbea3a3b88cadbbb4\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl enable awx-daphne&#13;\nCreated symlink from \/etc\/systemd\/system\/multi-user.target.wants\/awx-daphne.service to \/usr\/lib\/systemd\/system\/awx-daphne.service.&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"95e7fafae1d5f4e2ed\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# systemctl enable awx-web&#13;\nCreated symlink from \/etc\/systemd\/system\/multi-user.target.wants\/awx-web.service to \/usr\/lib\/systemd\/system\/awx-web.service.&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"93e1fcfce7d3f2e4eb\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]#&#13;\n<\/pre>\n<h2 id=\"configure-passwordless-login-from-awx-server\">Configure passwordless login from AWX server<\/h2>\n<p>Create a user on all the 3 hosts.<\/p>\n<p>Here in this tutorial, I am creating a user <strong><em>ansible<\/em><\/strong> on all the 3 servers.<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"e795888893a786909f\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# useradd ansible&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"7f0d10100b3f1c13161a110b4e\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# useradd ansible&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"fc8e939388bc9f90959992ce\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# useradd ansible&#13;\n<\/pre>\n<p>Generating ssh key in awx server<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"60120f0f1420011718\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> nginx]# su - ansible&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"5938372a303b353c19382e21\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]$ ssh-keygen&#13;\nGenerating public\/private rsa key pair.&#13;\nEnter file in which to save the key (\/home\/ansible\/.ssh\/id_rsa):&#13;\nCreated directory '\/home\/ansible\/.ssh'.&#13;\nEnter passphrase (empty for no passphrase):&#13;\nEnter same passphrase again:&#13;\nYour identification has been saved in \/home\/ansible\/.ssh\/id_rsa.&#13;\nYour public key has been saved in \/home\/ansible\/.ssh\/id_rsa.pub.&#13;\nThe key fingerprint is:&#13;\nSHA256:RW\/dhTsxcyGicleRI0LpLm+LyhAVinm0xktapodc8gY <a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"43222d302a212f260322343b6d30362d2a2f6d2020\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a>&#13;\nThe key's randomart image is:&#13;\n+---[RSA 2048]----+&#13;\n| . . ..o. +ooo|&#13;\n| = o . +.oo+*.o|&#13;\n| E @ . ..oo.+ o*.|&#13;\n|. # o oo.. o |&#13;\n| = * S . |&#13;\n| o . . . |&#13;\n| . o |&#13;\n| o .o |&#13;\n| o..... |&#13;\n+----[SHA256]-----+&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"53323d203a313f361332242b\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]$&#13;\n<\/pre>\n<p>Adding the sudoers entry on all 3 servers as a last entry to the file<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"88fae7e7fcc8e9fff0\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> nginx]# visudo&#13;\nansible ALL=(ALL) NOPASSWD: ALL&#13;\n<\/pre>\n<p>Copy the content of id_rsa.pub to authorized_keys on all the 3 servers<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"3a5b54495358565f7a5b4d42\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> .ssh]$ cat id_rsa.pub&#13;\nssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDStB8JGsVsSLppwYWdnEPLE4xwFqRDn7xE\/d3hjBQ6A0JGm1t+GtHB3GPIEjANFTnxQwHpR+cRttbL3mlQvpIYqCZOMZds9XA7VI5qgs0aSGUU8cNYKjmmrMpJa9sB4WVtj3M4u2fEXt9FKKCtjMMpOfiQxIkEhYZ+2GoAX5sHXan7TPcgwb5r7WW6j43aaPc6g9XWN63nonQz6KeMSFZ\/y0o2HJMh1FEkktZw6A1HVfn+JNWoQb1glyqGjO1ync+Sok8yXpqakEEWpXNQSQYs4eBEwfkKql5EuolQMIbF9VYhpEcR9LfbMvYdq\/RPKWN3mmRMWfPZ2dTZl515XBdV <a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"4a2b24392328262f0a2b3d3264393f242326642929\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a>&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"3d5c534e545f51587d5c4a45\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> .ssh]$&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"3e5f504d575c525b7e5f4946\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> .ssh]$ cat authorized_keys&#13;\nssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDStB8JGsVsSLppwYWdnEPLE4xwFqRDn7xE\/d3hjBQ6A0JGm1t+GtHB3GPIEjANFTnxQwHpR+cRttbL3mlQvpIYqCZOMZds9XA7VI5qgs0aSGUU8cNYKjmmrMpJa9sB4WVtj3M4u2fEXt9FKKCtjMMpOfiQxIkEhYZ+2GoAX5sHXan7TPcgwb5r7WW6j43aaPc6g9XWN63nonQz6KeMSFZ\/y0o2HJMh1FEkktZw6A1HVfn+JNWoQb1glyqGjO1ync+Sok8yXpqakEEWpXNQSQYs4eBEwfkKql5EuolQMIbF9VYhpEcR9LfbMvYdq\/RPKWN3mmRMWfPZ2dTZl515XBdV <a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"fd9c938e949f9198bd9c8a85d38e88939491d39e9e\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a>&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"9ffef1ecf6fdf3fadffee8e7\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> .ssh]$ chmod 600 authorized_keys&#13;\n<\/pre>\n<p>Client1<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"790b16160d391a15101c170d48\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# su - ansible&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"7a1b14091318161f3a1916131f140e4b\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]$ mkdir .ssh&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"3f5e514c565d535a7f5c53565a514b0e\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]$ chmod 700 .ssh&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"73121d001a111f1633101f1a161d0742\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]$ cat .ssh\/authorized_keys&#13;\nssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDStB8JGsVsSLppwYWdnEPLE4xwFqRDn7xE\/d3hjBQ6A0JGm1t+GtHB3GPIEjANFTnxQwHpR+cRttbL3mlQvpIYqCZOMZds9XA7VI5qgs0aSGUU8cNYKjmmrMpJa9sB4WVtj3M4u2fEXt9FKKCtjMMpOfiQxIkEhYZ+2GoAX5sHXan7TPcgwb5r7WW6j43aaPc6g9XWN63nonQz6KeMSFZ\/y0o2HJMh1FEkktZw6A1HVfn+JNWoQb1glyqGjO1ync+Sok8yXpqakEEWpXNQSQYs4eBEwfkKql5EuolQMIbF9VYhpEcR9LfbMvYdq\/RPKWN3mmRMWfPZ2dTZl515XBdV <a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"60010e1309020c05200117184e13150e090c4e0303\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a>&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"4829263b212a242d082b24212d263c79\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]$ chmod 600 .ssh\/authorized_keys&#13;\n<\/pre>\n<p>Client2<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"b5c7dadac1f5d6d9dcd0dbc187\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]# su - ansible&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"9cfdf2eff5fef0f9dcfff0f5f9f2e8ae\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]$ mkdir .ssh&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"64050a170d0608012407080d010a1056\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]$ chmod 700 .ssh&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"bcddd2cfd5ded0d9fcdfd0d5d9d2c88e\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]$ cat .ssh\/authorized_keys&#13;\nssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDStB8JGsVsSLppwYWdnEPLE4xwFqRDn7xE\/d3hjBQ6A0JGm1t+GtHB3GPIEjANFTnxQwHpR+cRttbL3mlQvpIYqCZOMZds9XA7VI5qgs0aSGUU8cNYKjmmrMpJa9sB4WVtj3M4u2fEXt9FKKCtjMMpOfiQxIkEhYZ+2GoAX5sHXan7TPcgwb5r7WW6j43aaPc6g9XWN63nonQz6KeMSFZ\/y0o2HJMh1FEkktZw6A1HVfn+JNWoQb1glyqGjO1ync+Sok8yXpqakEEWpXNQSQYs4eBEwfkKql5EuolQMIbF9VYhpEcR9LfbMvYdq\/RPKWN3mmRMWfPZ2dTZl515XBdV <a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"2b4a45584249474e6b4a5c5305585e454247054848\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a>&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"f5949b869c979990b596999c909b81c7\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]$ chmod 600 .ssh\/authorized_keys&#13;\n<\/pre>\n<p>Check the passwordless login from AWX\u00a0server.<\/p>\n<pre class=\"command\">[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"80e1eef3e9e2ece5c0e1f7f8\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]$ ssh client1&#13;\nLast login: Sun Mar 11 13:14:06 2018 from 192.168.1.25&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"23424d504a414f4663404f4a464d5712\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]$ exit&#13;\nlogout&#13;\nConnection to client1 closed.&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"c1a0afb2a8a3ada481a0b6b9\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]$ ssh client2&#13;\nLast login: Sun Mar 11 12:50:14 2018 from 192.168.1.25&#13;\n[<a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"15747b667c7779705576797c707b6127\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a> ~]$&#13;\n<\/pre>\n<p>Validate the Login:<\/p>\n<p><a class=\"fancybox\" id=\"img-1\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_ansible_awx_on_centos_7\/big\/1.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/04\/how-to-install-ansible-awx-on-centos-7.jpg\" alt=\"Ansible AWX Login\" width=\"550\" height=\"295\" title=\"\"><\/a><\/p>\n<p>The Login details are:<\/p>\n<p>Username: &#8220;<strong>admin<\/strong>&#8220;<br \/>Password: &#8220;<strong>password<\/strong>&#8220;<\/p>\n<p><a class=\"fancybox\" id=\"img-2\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_ansible_awx_on_centos_7\/big\/2.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/04\/how-to-install-ansible-awx-on-centos-7-1.jpg\" alt=\"Ansible AWX dashboard\" width=\"550\" height=\"295\" title=\"\"><\/a><\/p>\n<p>In the next tutorial will show how to add a playbook and run the job.<\/p>\n<h2 id=\"reference\">Reference<\/h2>\n<div>\n<p><b>Share this page:<\/b><\/p>\n<p>\n<a href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fcentos-ansible-awx-installation%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/04\/how-to-install-ansible-awx-on-centos-7.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fcentos-ansible-awx-installation%2F&amp;text=How+to+Install+Ansible+AWX+on+CentOS+7&amp;via=howtoforgecom&amp;related=howtoforgecom\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/04\/how-to-install-ansible-awx-on-centos-7-1.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/howtoforgecom\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/04\/how-to-install-ansible-awx-on-centos-7-2.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/plus.google.com\/share?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fcentos-ansible-awx-installation%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/04\/how-to-install-ansible-awx-on-centos-7-3.png\" height=\"20\" alt=\"\" title=\"\"><\/a>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In the previous tutorial,\u00a0I showed you how to deploy Ansible AWX via docker. In the meantime, I&#8217;ve found two projects\u00a0that build rpm packages for AWX. So in this tutorial,\u00a0I will show you how to install\u00a0Ansible AWX from RPM\u00a0 files on CentOS 7. Ansible AWX is the OpenSource version of the Ansible Tower software. I will &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-3222","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/3222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=3222"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/3222\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=3222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=3222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=3222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}