There is a new version of this tutorial available for CentOS 8.

How to Install Ansible AWX on CentOS 7

In the previous tutorial, I showed you how to deploy Ansible AWX via docker. In the meantime, I've found two projects that build rpm packages for AWX. So in this tutorial, I will show you how to install Ansible AWX from RPM  files on CentOS 7. Ansible AWX is the OpenSource version of the Ansible Tower software.

I will be using 3 servers with CentOS 7 minimal installation and SELinux in permissive mode.

  • 192.168.1.25 AWX Server
  • 192.168.1.21 client1
  • 192.168.1.22 client2

Minimum System Requirements for AWX Server

  • At least 4GB of memory
  • At least 2 cpu cores
  • At least 20GB of space
  • Running Docker, Openshift, or Kubernetes

Check the SELinux configuration.

[[email protected] ~]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   permissive
Mode from config file:          permissive
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      28
[[email protected] ~]#

Add the host entries in

/etc/hosts
[[email protected] ~]# cat /etc/hosts
192.168.1.25    awx.sunil.cc awx
192.168.1.21    client1.sunil.cc client1
192.168.1.22    client2.sunil.cc client2
[[email protected] ~]#

Add the firewall rules

[[email protected] ~]# systemctl enable firewalld
Created symlink from /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service to /usr/lib/systemd/system/firewalld.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/firewalld.service to /usr/lib/systemd/system/firewalld.service.
[[email protected] ~]# systemctl start firewalld
[[email protected] ~]# firewall-cmd --add-service=http --permanent;firewall-cmd --add-service=https --permanent
success
success
[[email protected] ~]# systemctl restart firewalld
[[email protected] ~]#

Enable CentOS EPEL repository.

[[email protected] ~]# yum install -y epel-release

We need postgresql 9.6 for AWX installation.

Enable postgreSQL repo.

[[email protected] ~]# yum install -y https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm

Installing postgreSQL.

[[email protected] ~]# yum install postgresql96-server -y

Installing the other necessary rpms.

[[email protected] ~]# yum install -y rabbitmq-server wget memcached nginx ansible

Installing Ansible AWX

Adding the AWX repo.

[[email protected] ~]# wget -O /etc/yum.repos.d/awx-rpm.repo https://copr.fedorainfracloud.org/coprs/mrmeee/awx/repo/epel-7/mrmeee-awx-epel-7.repo

Installing the rpm

[[email protected] ~]# yum install -y awx

Intializing the database

[[email protected] ~]# /usr/pgsql-9.6/bin/postgresql96-setup initdb
Initializing database ... OK

[[email protected] ~]#

Starting the Rabbitmq Service

[[email protected] ~]# systemctl start rabbitmq-server
[[email protected] ~]# systemctl enable rabbitmq-server
Created symlink from /etc/systemd/system/multi-user.target.wants/rabbitmq-server.service to /usr/lib/systemd/system/rabbitmq-server.service.
[[email protected] ~]#

Starting PostgreSQL Service

[[email protected] ~]# systemctl enable postgresql-9.6
Created symlink from /etc/systemd/system/multi-user.target.wants/postgresql-9.6.service to /usr/lib/systemd/system/postgresql-9.6.service.
[[email protected] ~]# systemctl start postgresql-9.6

Starting Memcached Service

[[email protected] ~]# systemctl enable memcached
Created symlink from /etc/systemd/system/multi-user.target.wants/memcached.service to /usr/lib/systemd/system/memcached.service.
[[email protected] ~]# systemctl start memcached

Creating Postgres user

[[email protected] ~]# sudo -u postgres createuser -S awx
could not change directory to "/root": Permission denied
[[email protected] ~]#

ignore the error

Creating the database

[[email protected] ~]# sudo -u postgres createdb -O awx awx
could not change directory to "/root": Permission denied
[[email protected] ~]#

ignore the error

Importing the data into Database

[[email protected] ~]# sudo -u awx /opt/awx/bin/awx-manage migrate

Initializing the configuration for AWX

[[email protected] ~]# echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', '[email protected]', 'password')" | sudo -u awx /opt/awx/bin/awx-manage shell
[[email protected] ~]# sudo -u awx /opt/awx/bin/awx-manage create_preload_data
Default organization added.
Demo Credential, Inventory, and Job Template added.
[[email protected] ~]# sudo -u awx /opt/awx/bin/awx-manage provision_instance --hostname=$(hostname)
Successfully registered instance awx.sunil.cc
(changed: True)
[[email protected] ~]# sudo -u awx /opt/awx/bin/awx-manage register_queue --queuename=tower --hostnames=$(hostname)
Creating instance group tower
Added instance awx.sunil.cc to tower
(changed: True)
[[email protected] ~]#

Configure Nginx

Take the backup of nginx.conf

[[email protected] ~]# cd /etc/nginx/
[[email protected] nginx]# pwd
/etc/nginx
[[email protected] nginx]# cp nginx.conf nginx.conf.bkp

Replace the nginx conf file

[[email protected] nginx]# wget -O /etc/nginx/nginx.conf https://raw.githubusercontent.com/sunilsankar/awx-build/master/nginx.conf

Enable and start nginx service

[[email protected] ~]# systemctl start nginx
[[email protected] ~]# systemctl enable nginx

Start the awx services

[[email protected] ~]# systemctl start awx-cbreceiver
[[email protected] ~]# systemctl start awx-celery-beat
[[email protected] ~]# systemctl start awx-celery-worker
[[email protected] ~]# systemctl start awx-channels-worker
[[email protected] ~]# systemctl start awx-daphne
[[email protected] ~]# systemctl start awx-web

Make sure the service is started during restart

[[email protected] ~]# systemctl enable awx-cbreceiver
Created symlink from /etc/systemd/system/multi-user.target.wants/awx-cbreceiver.service to /usr/lib/systemd/system/awx-cbreceiver.service.
[[email protected] ~]# systemctl enable awx-celery-beat
Created symlink from /etc/systemd/system/multi-user.target.wants/awx-celery-beat.service to /usr/lib/systemd/system/awx-celery-beat.service.
[[email protected] ~]# systemctl enable awx-celery-worker
Created symlink from /etc/systemd/system/multi-user.target.wants/awx-celery-worker.service to /usr/lib/systemd/system/awx-celery-worker.service.
[[email protected] ~]# systemctl enable awx-channels-worker
Created symlink from /etc/systemd/system/multi-user.target.wants/awx-channels-worker.service to /usr/lib/systemd/system/awx-channels-worker.service.
[[email protected] ~]# systemctl enable awx-daphne
Created symlink from /etc/systemd/system/multi-user.target.wants/awx-daphne.service to /usr/lib/systemd/system/awx-daphne.service.
[[email protected] ~]# systemctl enable awx-web
Created symlink from /etc/systemd/system/multi-user.target.wants/awx-web.service to /usr/lib/systemd/system/awx-web.service.
[[email protected] ~]#

Configure passwordless login from AWX server

Create a user on all the 3 hosts.

Here in this tutorial, I am creating a user ansible on all the 3 servers.

[[email protected] ~]# useradd ansible
[[email protected] ~]# useradd ansible
[[email protected] ~]# useradd ansible

Generating ssh key in awx server

[[email protected] nginx]# su - ansible
[[email protected] ~]$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/ansible/.ssh/id_rsa):
Created directory '/home/ansible/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/ansible/.ssh/id_rsa.
Your public key has been saved in /home/ansible/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:RW/dhTsxcyGicleRI0LpLm+LyhAVinm0xktapodc8gY [email protected]
The key's randomart image is:
+---[RSA 2048]----+
|   . .  ..o. +ooo|
|  = o .  +.oo+*.o|
| E @ . ..oo.+ o*.|
|. # o   oo..  o  |
| = *    S      . |
|  o .  . .       |
|   .    o        |
|    o   .o       |
|     o.....      |
+----[SHA256]-----+
[[email protected] ~]$

Adding the sudoers entry on all 3 servers as a last entry to the file

[[email protected] nginx]# visudo
ansible ALL=(ALL) NOPASSWD: ALL

Copy the content of id_rsa.pub to authorized_keys on all the 3 servers

[[email protected] .ssh]$ cat id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDStB8JGsVsSLppwYWdnEPLE4xwFqRDn7xE/d3hjBQ6A0JGm1t+GtHB3GPIEjANFTnxQwHpR+cRttbL3mlQvpIYqCZOMZds9XA7VI5qgs0aSGUU8cNYKjmmrMpJa9sB4WVtj3M4u2fEXt9FKKCtjMMpOfiQxIkEhYZ+2GoAX5sHXan7TPcgwb5r7WW6j43aaPc6g9XWN63nonQz6KeMSFZ/y0o2HJMh1FEkktZw6A1HVfn+JNWoQb1glyqGjO1ync+Sok8yXpqakEEWpXNQSQYs4eBEwfkKql5EuolQMIbF9VYhpEcR9LfbMvYdq/RPKWN3mmRMWfPZ2dTZl515XBdV [email protected]
[[email protected] .ssh]$
[[email protected] .ssh]$ cat authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDStB8JGsVsSLppwYWdnEPLE4xwFqRDn7xE/d3hjBQ6A0JGm1t+GtHB3GPIEjANFTnxQwHpR+cRttbL3mlQvpIYqCZOMZds9XA7VI5qgs0aSGUU8cNYKjmmrMpJa9sB4WVtj3M4u2fEXt9FKKCtjMMpOfiQxIkEhYZ+2GoAX5sHXan7TPcgwb5r7WW6j43aaPc6g9XWN63nonQz6KeMSFZ/y0o2HJMh1FEkktZw6A1HVfn+JNWoQb1glyqGjO1ync+Sok8yXpqakEEWpXNQSQYs4eBEwfkKql5EuolQMIbF9VYhpEcR9LfbMvYdq/RPKWN3mmRMWfPZ2dTZl515XBdV [email protected]
[[email protected] .ssh]$ chmod 600 authorized_keys

Client1

[[email protected] ~]# su - ansible
[[email protected] ~]$ mkdir .ssh
[[email protected] ~]$ chmod 700 .ssh
[[email protected]t1 ~]$ cat .ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDStB8JGsVsSLppwYWdnEPLE4xwFqRDn7xE/d3hjBQ6A0JGm1t+GtHB3GPIEjANFTnxQwHpR+cRttbL3mlQvpIYqCZOMZds9XA7VI5qgs0aSGUU8cNYKjmmrMpJa9sB4WVtj3M4u2fEXt9FKKCtjMMpOfiQxIkEhYZ+2GoAX5sHXan7TPcgwb5r7WW6j43aaPc6g9XWN63nonQz6KeMSFZ/y0o2HJMh1FEkktZw6A1HVfn+JNWoQb1glyqGjO1ync+Sok8yXpqakEEWpXNQSQYs4eBEwfkKql5EuolQMIbF9VYhpEcR9LfbMvYdq/RPKWN3mmRMWfPZ2dTZl515XBdV [email protected]
[[email protected] ~]$ chmod 600 .ssh/authorized_keys

Client2

[[email protected] ~]# su - ansible
[[email protected] ~]$ mkdir .ssh
[[email protected] ~]$ chmod 700 .ssh
[[email protected] ~]$ cat .ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDStB8JGsVsSLppwYWdnEPLE4xwFqRDn7xE/d3hjBQ6A0JGm1t+GtHB3GPIEjANFTnxQwHpR+cRttbL3mlQvpIYqCZOMZds9XA7VI5qgs0aSGUU8cNYKjmmrMpJa9sB4WVtj3M4u2fEXt9FKKCtjMMpOfiQxIkEhYZ+2GoAX5sHXan7TPcgwb5r7WW6j43aaPc6g9XWN63nonQz6KeMSFZ/y0o2HJMh1FEkktZw6A1HVfn+JNWoQb1glyqGjO1ync+Sok8yXpqakEEWpXNQSQYs4eBEwfkKql5EuolQMIbF9VYhpEcR9LfbMvYdq/RPKWN3mmRMWfPZ2dTZl515XBdV [email protected]
[[email protected] ~]$ chmod 600 .ssh/authorized_keys

Check the passwordless login from AWX server.

[[email protected] ~]$ ssh client1
Last login: Sun Mar 11 13:14:06 2018 from 192.168.1.25
[[email protected] ~]$ exit
logout
Connection to client1 closed.
[[email protected] ~]$ ssh client2
Last login: Sun Mar 11 12:50:14 2018 from 192.168.1.25
[[email protected] ~]$

Validate the Login:

Ansible AWX Login

The Login details are:

Username: "admin"
Password: "password"

Ansible AWX dashboard

In the next tutorial will show how to add a playbook and run the job.

Reference

Share this page:

Suggested articles

53 Comment(s)

Add comment

Comments

By: Tomas

With this line you have basically created a new root account called ansible:

ansible ALL=(ALL) NOPASSWD: ALL

Is this necessary to run Ansible?

By: iron_michael86

This is just a example , you can use any user with root access

Regards

Sunil

By: Pedro C

FYI you may get a "502 bad gateway" error. Fix is: https://stackoverflow.com/questions/23948527/13-permission-denied-while-connecting-to-upstreamnginx

By: Deano

Thanks it was SELinux

setsebool -P httpd_can_network_connect 1

 

By: Josh H

Yeah it would be nice if OP included that in their blog post. I hit this problem as well. 

By: Brendan

That fixed it for me. Thanks!

By: Josef

Thanks, everything is working but I had to disable httpd

systemctl stop httpd.service

systemctl disable httpd.service

 

By: The login does not work

I tried to login using admin and password credentials but they don't work.

By: Sampath

What is the correct username and password to login awx console...?

By: Paul

Check your sestatus; rerun AWX setup, then reboot.

By: prashant

run this command again 

echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', '[email protected]', 'password')" | sudo -u awx /opt/awx/bin/awx-manage shell

By: Randy P

I'm getting the error 502 bad gateway.  the install was done on centos 7 minimal and httpd service was never installed.  If I put the original nginx.conf file back, it works fine.  Any ideas?

By: Allan

I got the same error, I had to reboot the system which fixed the issue.

By: Mikey

Please provide a link to "the next tutorial" which shows us how to add a playbook and run the job.

 

By: salder

First, nice work.  Thank you for putting all of this together.  Though my being a SysAdmin, and thus lazy by definition.  Might I offer a few changes for consideration?

Installing the packages seperately just extends things.  Install all of the packages at the same time, where it makes sense. (ie. yum -y install postgresql96-server rabbitmq-server wget memcached nginx ansible) This allows for fewer steps and inturn less chance of the fat-fingers.

Second, less steps.  All of the steps where you are enabling and starting services in two commands, can be done in one step.  The worse case of this being the awx services.  (systemctl start --now awx-cbreceiver awx-celery-beat awx-celery-worker awx-channels-worker awx-daphne awx-web)  Any errors or issues are still apparent, but again, less chance for screw-ups to happen.

Last, it is a better option to leave the default sudoers file alone.  Your additions should be placed in a purposefully named file in /etc/sudoers.d.  Which can then be written as a single line of commands and scrapped into the terminal for use.  (ie. echo "ansible ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/ansible_user && chmod 600 /etc/sudoers.d/ansible_user)

By: Vathsa

Please do not use the following repo as indicated in the documentation for installing awx https://copr.fedorainfracloud.org/coprs/mrmeee/awx/repo/epel-7/mrmeee-awx-epel-7.repo .

The build on that repo has failed and when you use it you will run into multiple issues like SCM clones not working and others. Please use the following repo instaed "https://copr.fedorainfracloud.org/coprs/mrmeee/awx-dev/repo/epel-7/mrmeee-awx-dev-epel-7.repo".

By: Catarina

Hi, 

Can I make a environment with two nodes running Ansible managed by just one AWX? One to manage a network and other to manage another network?

How can I do that?

By: rajesh S

Can we update the awx version.

By: Dhinesh

Great Work ! My installation works perfect, I was trying to make inventory sync with AWS Credentials but I am error as " ERROR! No inventory was parsed, please check your configuration and options." My config file ansible.cfg I tried to modify the inventory parameter "#unparsed_is_failed = true". But the issue still exists . I am confused my why awx unable pick the inventory setup ?

By: Dimitri

The follow-on tutorial on how to add a playbook and run a job would be extremely useful.

By: Madhu Raghav

My UI is not opening, i see ginx is started and awx web service is started. I dnt seee any access log coming in 

By: vaibhav

 you can use either httpd or nginx as both runs at port 80.

By: Dimitri

My installation works, bit I have two issues:

- like a previous poster, I'm trying to make inventory sync with both Satellte (Spacewalk) and Vcenter. And like the previous poster, I also get " ERROR! No inventory was parsed, please check your configuration and options.".  My config files seem correct.

- when I run a job, status remains on "Running".  I have to refresh the browser to see the output of the run (whether successful, or not).

By: Hai

Thanks for tutorial!

Can you continue share create playbook and execute it with Ansible AWX

By: Ted Fernandes

Hi, Nice tutorial! I have installed it. Nice work.

But I am curious. Why did you have to disable fireawall?

What is the impact on having firewall enabled?

By: RP

where do you see firewall being disabled? It is enabled with rules to http

By: Sreekar

I have tried the steps and with some changes , I was able to successfully get the awx working. I tried the steps on amazon linux v2. Thank you for this article. I was breaking my head for the awx installation for the last 4 days. 

By: edjojo

Hi After installation, I could not schedule any jobs. In fact awx-dispatcher.service is  not enabled by default. Therefore you need enable and start the service

systemctl enable awx-dispatcher.service

systemctl start awx-dispatcher

By: Dmitry

Thank you!

By: edjojo

Few days after I have installed  I  updated my box using yum update. Riught afetr that, my box stays stucked for hours at a page showing " AWX upgrading". The url  shows "http//<IP_ADDRESSE>/migrations_notran".

issue is fixed by running :

sudo -u awx /opt/awx/bin/awx-manage migrate

 

By: edjojo

Few days after I have installed  I  updated my box using yum update. Riught afetr that, my box stays stucked for hours at a page showing " AWX upgrading". The url  shows "http//<IP_ADDRESSE>/migrations_notran".

issue is fixed by running :

sudo -u awx /opt/awx/bin/awx-manage migrate

 

By: edjojo

Few days after I have installed  I  updated my box using yum update. Riught afetr that, my box stays stucked for hours at a page showing " AWX upgrading". The url  shows "http//<IP_ADDRESSE>/migrations_notran".

issue is fixed by running :

sudo -u awx /opt/awx/bin/awx-manage migrate

 

By: Joe

We change the admin user password and now cannot login from the web portal.

How do I fix it?

Thanks in advance for your help.

By: Bruce

I was getting error when trying to login to web portal "Invalid credentials".

 

Try clear browser cookies/cache or try running Chrome in Incognito mode.

 

Worked for me.

By: yang

Will there be a clustering installation guide ?

By: john

[[email protected] ~]# systemctl enable awx-celery-beat

[[email protected] ~]# systemctl enable awx-celery-worker

Failed to execute operation: No such file or directory

 for these two only! :)

 

By: TimGun

Same (following the guide to a T). Apparently, the AWX people switched away from celery. Not sure the importance it has on this project.

 

github.com/MrMEEE/awx-build/issues/52#issuecomment-436570911

By: Himanshu

[[email protected] ~]# systemctl start awx-celery-beat [[email protected] ~]# systemctl start awx-celery-workerGetting error :[[email protected] nginx]# systemctl start awx-celery-beat Failed to start awx-celery-beat.service: Unit not found. [[email protected] nginx]# systemctl start awx-celery-worker Failed to start awx-celery-worker.service: Unit not found.

What is required here?

By: justme

same here

By: twizod

Can't even get login page.  Port 80 is listening with nginx but browser is dead end and lynx shows bad html error.

By: chinochao

For some reason /websocket is not working for me. "failed: WebSocket is closed before the connection is established."

By: PIsaac

Same error.  "Failed to start awx-celery-beat.service: Unit not found."

I don't see a solution anywhere. I tried the awx-dev repo and had the same issue. Is there a solution?

By: Stefan Iusein

Just forget about awx-celery-beat and awx-celery-worker services.

However, do enable awx-dispatcher service.

To see what awx services are enabled, issue the command: systemctl list-unit-files | grep awx

Also allow these ports in the firewall: 8050 8051 and 8052

You can access the web interface on http://yourip:8052

By: Stefan Iusein

Just forget about awx-celery-beat and awx-celery-worker services.

However, do enable awx-dispatcher service.

To see what awx services are enabled, issue the command: systemctl list-unit-files | grep awx

Also allow these ports in the firewall: 8050 8051 and 8052

You can access the web interface on http://yourip:8052

By: Stefan Iusein

 Just forget about awx-celery-beat and awx-celery-worker services.

However, do enable awx-dispatcher service.

To see what awx services are enabled, issue the command: systemctl list-unit-files | grep awx

Also allow these ports in the firewall: 8050 8051 and 8052

You can access the web interface on http://yourip:8052

By: Stefan Iusein

Just forget about awx-celery-beat and awx-celery-worker services.

 

However, do enable awx-dispatcher service.

 

To see what awx services are enabled, issue the command: systemctl list-unit-files | grep awx

 

Also allow these ports in the firewall: 8050 8051 and 8052

 

You can access the web interface on http://yourip:8052

By: jp

Hi

I have a difficulty with awx-celery All is Ok until this line:

[[email protected] installer]# systemctl enable awx-celery-beatFailed to execute operation: No such file or directory

I did many things without success. Could you help me? Thank you in advance.

By: Arrey

Hello, Thanks for the installation steps.  I the below error. Any ideas ?

sudo -u awx /opt/rh/rh-python36/root/usr/bin/awx-manage  migrateTraceback (most recent call last):  File "/opt/rh/rh-python36/root/usr/bin/awx-manage", line 11, in <module>    load_entry_point('awx==4.0.0', 'console_scripts', 'awx-manage')()  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/awx/__init__.py", line 124, in manage    prepare_env()  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/awx/__init__.py", line 89, in prepare_env    if not settings.DEBUG: # pragma: no cover  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/conf/__init__.py", line 56, in __getattr__    self._setup(name)  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/conf/__init__.py", line 41, in _setup    self._wrapped = Settings(settings_module)  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/conf/__init__.py", line 110, in __init__    mod = importlib.import_module(self.SETTINGS_MODULE)  File "/opt/rh/rh-python36/root/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module    return _bootstrap._gcd_import(name[level:], package, level)  File "<frozen importlib._bootstrap>", line 994, in _gcd_import  File "<frozen importlib._bootstrap>", line 971, in _find_and_load  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked  File "<frozen importlib._bootstrap_external>", line 678, in exec_module  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/awx/settings/production.py", line 14, in <module>    from split_settings.tools import optional, includeModuleNotFoundError: No module named 'split_settings'

By: Brian

A small correction:

The source on the wget line should be:  https://copr.fedorainfracloud.org/coprs/mrmeee/ansible-awx/repo/epel-7/mrmeee-awx-epel-7.repo

By: Lesley Ribeiro

I have only Ansible installed in my CentOS7.

AWX was installed with successful.

 

But, during exec job:

 

Identity added: /tmp/awx_41_tcbrtokr/artifacts/41/ssh_key_data (/tmp/awx_41_tcbrtokr/artifacts/41/ssh_key_data)     2 Unhandled error:     3 Traceback (most recent call last):     4 File "/opt/rh/rh-python36/root/lib/python3.6/site-packages/ansible/config/manager.py", line 498, in get_config_value_and_origin     5 value = ensure_type(value, defs[config].get('type'), origin=origin)     6 File "/opt/rh/rh-python36/root/lib/python3.6/site-packages/ansible/config/manager.py", line 93, in ensure_type     7 value = int(value)     8 ValueError: invalid literal for int() with base 10: '3 ; Tempo para nova tentativa de conxao com um host.'     10 During handling of the above exception, another exception occurred:     12 Traceback (most recent call last):     13 File "/opt/rh/rh-python36/root/lib/python3.6/site-packages/ansible/config/manager.py", line 554, in update_config_data     14 value, origin = self.get_config_value_and_origin(config, configfile)     15 File "/opt/rh/rh-python36/root/lib/python3.6/site-packages/ansible/config/manager.py", line 506, in get_config_value_and_origin     16 (to_native(_get_entry(plugin_type, plugin_name, config)), to_native(e)))     17 ansible.errors.AnsibleOptionsError: Invalid type for configuration option setting: ANSIBLE_SSH_RETRIES : invalid literal for int() with base 10: '3 ; Tempo para nova tentativa de conxao com um host.'     20 Traceback (most recent call last):     21 File "/opt/rh/rh-python36/root/lib/python3.6/site-packages/ansible/config/manager.py", line 498, in get_config_value_and_origin     22 value = ensure_type(value, defs[config].get('type'), origin=origin)     23 File "/opt/rh/rh-python36/root/lib/python3.6/site-packages/ansible/config/manager.py", line 93, in ensure_type     24 value = int(value)     25 ValueError: invalid literal for int() with base 10: '3 ; Tempo para nova tentativa de conxao com um host.'     27 During handling of the above exception, another exception occurred:     29 Traceback (most recent call last):     30 File "/opt/rh/rh-python36/root/lib/python3.6/site-packages/ansible/config/manager.py", line 554, in update_config_data     31 value, origin = self.get_config_value_and_origin(config, configfile)     32 File "/opt/rh/rh-python36/root/lib/python3.6/site-packages/ansible/config/manager.py", line 506, in get_config_value_and_origin     33 (to_native(_get_entry(plugin_type, plugin_name, config)), to_native(e)))     34 ansible.errors.AnsibleOptionsError: Invalid type for configuration option setting: ANSIBLE_SSH_RETRIES : invalid literal for int() with base 10: '3 ; Tempo para nova tentativa de conxao com um host.'     36 During handling of the above exception, another exception occurred:     38 Traceback (most recent call last):     39 File "/opt/rh/rh-python36/root/bin/ansible-playbook", line 62, in <module>     40 import ansible.constants as C     41 File "/opt/rh/rh-python36/root/lib/python3.6/site-packages/ansible/constants.py", line 174, in <module>     42 config = ConfigManager()     43 File "/opt/rh/rh-python36/root/lib/python3.6/site-packages/ansible/config/manager.py", line 290, in __init__     44 self.update_config_data()     45 File "/opt/rh/rh-python36/root/lib/python3.6/site-packages/ansible/config/manager.py", line 566, in update_config_data     46 raise AnsibleError("Invalid settings supplied for %s: %s\n" % (config, to_native(e)), orig_exc=e)     47

ansible.errors.AnsibleError: Invalid settings supplied for ANSIBLE_SSH_RETRIES: Invalid type for configuration option setting: ANSIBLE_SSH_RETRIES : invalid literal for int() with base 10: '3 ; Tempo para nova tentativa de conxao com um host.' 

 

would it be missing origin, kubernet or doker installed?

By: Santosh Garole

Hello ,

 

unable to download ansible-awx.

 

Thanks

Santos

By: vivek

i think the repo url is not correct.

 yum install awx

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

 * base: centos.brisanet.com.br

 * centos-sclo-rh: centos.mirror.serversaustralia.com.au

 * centos-sclo-sclo: centos.mirror.ate.info

 * epel: epel.besthosting.ua

 * extras: centos.mirror.vic.au.hostlink.com.au

 * updates: centos.mirrors.hoobly.com

copr:copr.fedorainfracloud.org:mrmeee:ansible-awx                                                                                     | 3.3 kB  00:00:00

No package awx available.

Error: Nothing to do

[[email protected] etc]# yum install -y awx

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

 * base: centos.brisanet.com.br

 * centos-sclo-rh: centos.mirror.serversaustralia.com.au

 * centos-sclo-sclo: centos.mirror.ate.info

 * epel: epel.besthosting.ua

 * extras: centos.mirror.vic.au.hostlink.com.au

 * updates: centos.mirrors.hoobly.com

No package awx available.

Error: Nothing to do

 

By: Dalibor

Hi Vivex,

Run this:

 

 yum install -y ansible-awx.x86_64