Installation of 2.0

97 views
Skip to first unread message

aaron.t...@total.care

unread,
May 31, 2016, 11:27:11 AM5/31/16
to Ansible Project


I am in need of assistance in upgrading Ansible to version 2.0. Every time I attempt to install I get the 1.7.2 version. I have about 10 windows vm machines that I am looking to manage with the Ansible application and it is my understanding that 2.0 is more friendly to windows then previous version. Any help you can offer would be greatly appreciated. I have attached a screen shot of the version number.

Thank you

Eric S

unread,
May 31, 2016, 11:29:52 AM5/31/16
to Ansible Project
Have you tried to install it via pip?

Aaron Trujillo

unread,
May 31, 2016, 11:31:15 AM5/31/16
to ansible...@googlegroups.com

No only via get-apt and PPA, I will try it via PIP

--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/QGOY1JRgg4g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1777a515-14a0-41f9-9e60-bc0578fae5b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dmitry Owl

unread,
May 31, 2016, 11:44:29 AM5/31/16
to Ansible Project
You can install from source code.

$ sudo apt-get remove ansible
$ sudo apt
-get install asciidoc make debhelper cdbs devscripts
$ git clone
--recursive --branch v2.0.2.0-1 https://github.com/ansible/ansible.git
$ cd ansible
&& make deb
$ sudo dpkg -i deb-build/unstable/*.deb


Kai Stian Olstad

unread,
May 31, 2016, 12:03:29 PM5/31/16
to ansible...@googlegroups.com
On 31.05.2016 17:31, Aaron Trujillo wrote:
> No only via get-apt and PPA, I will try it via PIP

The PPA is for Ubuntu and not Debian that you use.


--
Kai Stian Olstad

aaron.t...@total.care

unread,
May 31, 2016, 12:18:17 PM5/31/16
to Ansible Project
can you tell me what this installing here?
sudo apt-get install asciidoc make debhelper cdbs devscripts
it is taking forever to do it looks like a lot of files...

aaron.t...@total.care

unread,
May 31, 2016, 12:36:52 PM5/31/16
to Ansible Project
I am getting an error at this part... 

aaron.t...@total.care

unread,
May 31, 2016, 1:09:01 PM5/31/16
to Ansible Project
Problem fixed.
Thanks.


On Tuesday, May 31, 2016 at 9:27:11 AM UTC-6, aaron.t...@total.care wrote:

Dmitry Owl

unread,
Jun 1, 2016, 3:18:20 AM6/1/16
to Ansible Project
This packages required for compiling. Without these packages you will get error like this:

dpkg-checkbuilddeps: Unmet build dependencies: cdbs debhelper (>= 5.0.0)
dpkg
-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg
-buildpackage: warning: (Use -d flag to override.)
debuild
: fatal error at line 1364:
dpkg
-buildpackage -rfakeroot -D -us -uc --source-option=-I -b failed
make
: *** [deb] Error 29



вторник, 31 мая 2016 г., 19:18:17 UTC+3 пользователь aaron.t...@total.care написал:

hubrecht...@gmail.com

unread,
Jun 1, 2016, 4:36:30 AM6/1/16
to Ansible Project
Hi Dmitry,

Can I use something similar to create  package for RedHat Linux? I have the problem that the machine inside the network that I want to use as a master, doesn't have  internet, so I will probably need to create a package(preferably rpm) to install this, but as a Solaris man, I struggle to find a way on the ansible docs. Could you possibly point me in the correct direction?

H. 

Johannes Kastl

unread,
Jun 1, 2016, 8:43:28 AM6/1/16
to ansible...@googlegroups.com
On 01.06.16 10:36 hubrecht...@gmail.com wrote:
> Hi Dmitry,
>
> Can I use something similar to create package for RedHat Linux? I have the
> problem that the machine inside the network that I want to use as a master,
> doesn't have internet, so I will probably need to create a
> package(preferably rpm) to install this, but as a Solaris man, I struggle
> to find a way on the ansible docs. Could you possibly point me in the
> correct direction?

I build one for CentOS 7 on the openSUSE build service:

http://download.opensuse.org/repositories/home:/ojkastl_buildservice:/CentOS_Zeug/CentOS_7/x86_64/

There is a source rpm, that you might be able to use:
http://download.opensuse.org/repositories/home:/ojkastl_buildservice:/CentOS_Zeug/CentOS_7/src/ansible-2.1.0.0-51.1.src.rpm

Johannes


signature.asc
Message has been deleted

Dmitry Owl

unread,
Jun 2, 2016, 3:54:43 AM6/2/16
to Ansible Project
Not sure about RedHat, but for CentOS 7 you may use the similar operations

$ git clone --recursive --branch v2.0.2.0-1 https://github.com/ansible/ansible.git

$ cd ansible
&& make rpm
$ sudo rpm
-ivh rpm-build/ansible*centos.noarch.rpm

Oops!

error: Failed dependencies:
python-httplib2 is needed by ansible-2.0.2.0-0.git201604192124.24d9e5e.HEAD.el7.centos.noarch
python-keyczar is needed by ansible-2.0.2.0-0.git201604192124.24d9e5e.HEAD.el7.centos.noarch
python-paramiko is needed by ansible-2.0.2.0-0.git201604192124.24d9e5e.HEAD.el7.centos.noarch
sshpass is needed by ansible-2.0.2.0-0.git201604192124.24d9e5e.HEAD.el7.centos.noarch

We need to install EPEL repository and using 
 yum localinstall in order to avoid broken dependencies 

$ wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm
$ sudo rpm
-ivh epel-release-7-6.noarch.rpm
$ sudo yum localinstall rpm
-build/ansible*centos.noarch.rpm

valenti...@gmail.com

unread,
Jun 29, 2016, 4:42:39 PM6/29/16
to Ansible Project


вторник, 31 мая 2016 г., 21:27:11 UTC+6 пользователь aaron.t...@total.care написал:


I am in need of assistance in upgrading Ansible to version 2.0. Every time I attempt to install I get the 1.7.2 version. I have about 10 windows vm machines that I am looking to manage with the Ansible application and it is my understanding that 2.0 is more friendly to windows then previous version. Any help you can offer would be greatly appreciated. I have attached a screen shot of the version number.

Thank you

Looks like you trying to install it on Debian 8 where only Ansible 1.7.2 is on the standard repos.
You'd tried to add Ubuntu repos and that will not help

Try that:

sudo apt-get update
sudo apt-get install python-pip python-dev git -y
sudo pip install PyYAML jinja2 paramiko
git clone https://github.com/ansible/ansible.git
cd ansible
sudo make install
sudo mkdir /etc/ansible 
sudo cp ~/ansible/examples/hosts /etc/ansible/. 
Reply all
Reply to author
Forward
0 new messages