Package Details: ansible-core-git r51467.a30c55f68a-1

Git Clone URL: https://aur.archlinux.org/ansible-core-git.git (read-only, click to copy)
Package Base: ansible-core-git
Description: Radically simple IT automation platform
Upstream URL: https://github.com/ansible/ansible
Licenses: GPL3
Conflicts: ansible-base, ansible-core, python-ansible
Provides: ansible-base, ansible-core, python-ansible
Replaces: ansible-base, ansible-core, python-ansible
Submitter: aminvakil
Maintainer: aminvakil
Last Packager: aminvakil
Votes: 26
Popularity: 0.56
First Submitted: 2020-11-14 17:48
Last Updated: 2021-04-30 09:47

Dependencies (14)

Required by (6)

Sources (1)

Pinned Comments

aminvakil commented on 2021-08-28 15:06

This repository is maintained at https://github.com/aminvakil/aur.

In case anyone had any suggestions about anything, feel free to raise a PR there.

Latest Comments

« First ‹ Previous ... 2 3 4 5 6 7 8 Next › Last »

mbrown commented on 2012-12-18 20:04

@l3u : It's not just the binaries that need to be updated to use the correct python version, but the modules too! I emailed you an updated python-binary patch that fixes this.

l3u commented on 2012-12-18 19:21

@mrbrown : I'm reluctant recursively patching everything. This is pretty dangerous.

Furthermore, I don't see any problem here : all the ansible binaries are patched properly.

However, I may be missing something. Since there is a patch that should take care of fixing the python3/python2 thing, feel free to change it and I'll be happy to incorporate your changes.

mbrown commented on 2012-12-18 18:39

There are still many instances where the incorrect (python3) binary is used when installing using the latest PKGBUILD.

The following patch to the PKGBUILD fixes the install (and thus the bug I mentionned in my previous comment).

Maintainer, please update the PKGBUILD!

--- PKGBUILD 2012-11-16 03:42:33.000000000 -0500
+++ PKGBUILD.fixed 2012-12-18 13:33:03.070593912 -0500
@@ -6,7 +6,7 @@
arch=('any')
url="https://github.com/ansible/ansible"
license=('GPL3')
-depends=('python2' 'python2-yaml' 'python2-paramiko' 'python2-jinja' 'python-simplejson' 'python2-yaml')
+depends=('python2' 'python2-yaml' 'python2-paramiko' 'python2-jinja' 'python-simplejson')
makedepends=('git' 'asciidoc' 'fakeroot')
conflicts=('ansible')
source=("python-binary.diff")
@@ -30,6 +30,13 @@


cd "$srcdir/$_gitname"
+
+ # specify python binary as python2 where appropriate
+ exclude='(gettingstarted.rst|scripts-2.7)' # regexp of files/dirs to exclude when doing replacements
+ find -type f | grep -Ev $exclude | xargs sed -i \
+ -e 's:env python:env python2:g' \
+ -e 's:bin/python:bin/python2:g'
+
patch -p1 -i $srcdir/python-binary.diff
make
}

mbrown commented on 2012-12-12 19:28

Using ansible-git 20121212-1, if I create /etc/ansible/hosts and add eg: myhost.net (a host I have SSH access to) as an entry, a simple ping test fails with the following output :

$ ansible all -m ping

myhost.net | FAILED >> {
"failed": true,
"msg": " File \"/home/myuser/.ansible/tmp/ansible-1355339318.42-177093152372294/ping\", line 362\r\n\n except Exception, e:\r\n\n ^\r\n\nSyntaxError: invalid syntax\r\n",
"parsed": false
}

Anyone else with this issue ?

mbrown commented on 2012-12-12 19:15

Using ansible-git 20121116-1, if I create /etc/ansible/hosts and add eg: myhost.net (a host I have SSH access to) as an entry, a simple ping test fails with the following output :

$ ansible all -m ping

myhost.net | FAILED >> {
"failed": true,
"msg": " File \"/home/myuser/.ansible/tmp/ansible-1355339318.42-177093152372294/ping\", line 362\r\n\n except Exception, e:\r\n\n ^\r\n\nSyntaxError: invalid syntax\r\n",
"parsed": false
}

Anyone else with this issue ?

l3u commented on 2012-11-16 08:49

@Finkregh: your error comes from ansible using "python" for the python binary, that links to python3 on arch (on mine at least). And ansible requires python2.

PKGBUILD updated and patch added to solve this.

Anonymous comment on 2012-11-13 15:28

this should also conflict with 'ansible'...

Anonymous comment on 2012-11-13 15:27

please replace python-paramiko with python-paramiko2 and python-simplejson with python-simplejson2.

Besides does the Makefile run 'python' and not 'python2', so that should be fixed, too...

the latter seems to be the problem why i get:
==> GIT checkout done or server timeout
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
python setup.py build
File "setup.py", line 15
print "DATA FILES=%s" % data_files
^
SyntaxError: invalid syntax
make: *** [python] Error 1

neng commented on 2012-10-25 03:27

Please update depends: 'python2-paramiko>=1.7.7'

aorth commented on 2012-08-23 13:24

I just made a PKGBUILD for ansible stable (currently 0.6), if anyone's interested: http://ix.io/2PC