Not sure what "it still does not work" refers to.
So my first question is, which is the stable release now?
0.7.2
Because somehow in http://ansible.cc/docs/gettingstarted.html is a ppa
menioned for ubuntu https://launchpad.net/~rquillo/+archive/ansible
That one mentiones 0.7.2. But in the git repository
https://github.com/ansible/ansible/downloads
There is only ansible-0.7.1.tar.gz mentioned. So which source code should I
take now, to build a rpm of the current stable release of ansible. Please
point me directly to the code I shall take. Thanks a lot...
Probably because 0.7.2 didn't really warrant an official release.
0.8 comes out tonight, for what it's worth.
hakim
(hakim)
October 22, 2012, 8:03am
2
Hi,
So 0.8 is released now, I will start with that. Here is what I did:
Configure EPEL repo
wget ‘http://ftp-stud.hs-esslingen.de/pub/epel/5/i386/epel-release-5-4.noarch.rpm ’
rpm -ivh epel-release-5-4.noarch.rp
Get the newest release from [https://github.com/ansible/ansible/downloads here], and unpack it.
yum install python26 python26-PyYAML python26-paramiko python26-jinja2 rpm-build asciidoc libxslt git
cd ansible-
echo > VERSION
Version was at this time 0.8.
Change the python to python26:
# grep -ri python26 * | grep -v rpm-build
Makefile:SITELIB = $(shell python26 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
Makefile:all: clean python26
Makefile: python26 setup.py build
Makefile: python26 setup.py install
Makefile: python26 setup.py sdist -t MANIFEST.in
packaging/rpm/ansible.spec:%{!?python_sitelib: %global python_sitelib %(python26 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
packaging/rpm/ansible.spec:Requires: python26-paramiko
packaging/rpm/ansible.spec:Requires: python26-jinja2
packaging/rpm/ansible.spec:python26 setup.py build
packaging/rpm/ansible.spec:python26 setup.py install -O1 --root=$RPM_BUILD_ROOT
setup.py:#!/usr/bin/env python26
# make rpm
fatal: Not a git repository (or any of the parent directories): .git
Cleaning up distutils stuff
rm -rf build
rm -rf dist
Cleaning up byte compiled python stuff
find . -type f -regex ".*\.py[co]$" -delete
Cleaning up editor backup files
find . -type f \( -name "*~" -or -name "#*" \) -delete
find . -type f \( -name "*.swp" \) -delete
Cleaning up manpage stuff
find ./docs/man -type f -name "*.xml" -delete
find ./docs/man -type f -name "*.asciidoc" -delete
find ./docs/man/man3 -type f -name "*.3" -delete
Cleaning up output from test runs
rm -rf test/test_data
Cleaning up RPM building stuff
rm -rf MANIFEST rpm-build
Cleaning up Debian building stuff
rm -rf debian
rm -rf deb-build
rm -rf docs/json
rm -rf docs/js
sed "s/%VERSION%/0.8/" docs/man/man1/ansible.1.asciidoc.in > docs/man/man1/ansible.1.asciidoc
a2x -D docs/man/man1/ -d manpage -f manpage docs/man/man1/ansible.1.asciidoc
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
compilation error: file /etc/asciidoc/docbook-xsl/manpage.xsl line 13 element import
xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
a2x: failed: xsltproc --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0 --nonet "/etc/asciidoc/docbook-xsl/manpage.xsl" "/root/ansible-0.8/docs/man/man1/ansible.1.xml"
make: *** [docs/man/man1/ansible.1] Fehler 1
rm docs/man/man1/ansible.1.asciidoc
I am able to download with wget http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl , but somehow the a2x fails here. No rpm for centos 5 so far ;o)
Thanks for your help