install ansible tower on Ubuntu 14.04
Here are logs when installing ansible tower on Ubuntu 14.04.
Before installing ansible tower, install ansible
# tail -1 /etc/lsb-release
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
# apt-get install software-properties-common
# apt-add-repository ppa:ansible/ansible
# apt-get update
# apt-get install ansible
# ansible --version
ansible 1.8.2
configured module search path = None
|
install ansible tower.
# tar xzvf ansible-tower-setup-latest.tar.gz
# cd ansible-tower-setup-2.1.0/
# ./configure --local
# ./configure --local
-------------------------------------------
Welcome to the Ansible Tower Install Wizard
-------------------------------------------
This wizard will guide you through the setup process.
LOCAL INSTALLATION
You are installing Ansible Tower on this machine, using an internal database.
PASSWORDS
For security reasons, since this is a new install, you must specify the
following application passwords.
Enter the desired Ansible Tower admin user password:
Enter the desired Munin password:
REVIEW
You selected the following options:
The primary Tower machine is: localhost
Tower will operate on an INTERNAL database.
Are these settings correct (y/n)? y
Settings saved to tower_setup_conf.yml.
FINISHED!
You have completed the setup wizard. You may execute the installation of
Ansible Tower by issuing the following command:
sudo ./setup.sh
|
error.
# ./setup.sh
TASK: [packages_ubuntu | install awx package with the apt module] *************
failed: [localhost] => {"failed": true}
stderr: E: Version '2.1.0-*' for 'ansible-tower' was not found
stdout: Reading package lists...
Building dependency tree...
Reading state information...
msg: 'apt-get install 'ansible-tower=2.1.0-*'' failed: E: Version '2.1.0-*' for 'ansible-tower' was not found
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/root/site.retry
localhost : ok=19 changed=5 unreachable=0 failed=1
Oops! An error occured while running setup.
|
How about installing the following packages?
Someone, who succeeded in setting up an ansible tower, installed following packages in advance, so I tried that.
# apt-get install python-dev python-yaml python-paramiko python-jinja2 python-pip sshpass
|
try again.
I still faced the same error..
TASK: [packages_ubuntu | install awx package with the apt module] *************
failed: [localhost] => {"failed": true}
stderr: E: Version '2.1.0-*' for 'ansible-tower' was not found
stdout: Reading package lists...
Building dependency tree...
Reading state information...
msg: 'apt-get install 'ansible-tower=2.1.0-*'' failed: E: Version '2.1.0-*' for 'ansible-tower' was not found
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/root/site.retry
localhost : ok=19 changed=0 unreachable=0 failed=1
Oops! An error occured while running setup.
|
Let’s see the detail information of ansible-tower.
New version 2.1.1-1 has been released.
Actually two or three weeks has been passed since I downloaded ansible tower..
# apt-cache show ansible-tower
Package: ansible-tower
Version: 2.1.1-1
Architecture: all
Maintainer: Ansible <support@ansible.com>
Installed-Size: 123341
Depends: apache2, libapache2-mod-wsgi, libzmq3, libzmq3-dev, postgresql, python, python-psycopg2, python-setuptools, python-openssl, python-ldap, python-gevent, python-passlib, python-psutil, python-zmq, supervisor, proot, redis-server, redis-tools, rsyslog, sosreport, sshpass, subversion, mercurial, git, munin, munin-node, ansible
Conflicts: awx
Replaces: awx
Provides: awx
Homepage: http://www.ansible.com/
|
download ansible tower 2.1.1 and install that.
okay, I was able to install ansible tower.
107 tar xzvf ansible-tower-setup-latest.tar.gz
108 cd ansible-tower-setup-2.1.1/
109 ls
110 ./configure --local
111 ./setup.sh
PLAY RECAP ********************************************************************
localhost : ok=89 changed=52 unreachable=0 failed=0
The setup process completed successfully.
Setup log saved to /var/log/tower/setup-2015-02-13-02:33:15.log
|
The problem was that I tried to install the old version.
# /etc/init.d/ansible-tower status
Showing Tower Status
9.3/main (port 5432): online
redis-server is running
* apache2 is running
is running
|
access to https:// < ansible tower IP>
I downloaded the free license key which can manage nodes up to 10 and activated that key.
how to stop ansible tower.
# /etc/init.d/ansible-tower stop
Stopping Tower
* Stopping PostgreSQL 9.3 database server [ OK ]
Stopping redis-server: redis-server.
* Stopping web server apache2 *
Stopping supervisor: supervisord.
Waiting to allow supervisor time to cleanup ...
|
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.