Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#42187 - [ansible] ansible built-in hooks not working

Attached to Project: Community Packages
Opened by Jonathan Raffre (NekoLover) - Tuesday, 30 September 2014, 10:17 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Wednesday, 08 October 2014, 15:41 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Bartłomiej Piotrowski (Barthalion)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

All the python scripts in /usr/share/ansible use /usr/bin/python instead of /usr/bin/python2. Ansible being written in python2, those scripts are broken. They do not have the .py extension, not matching the find in the PKGBUILD of ansible.


Additional info:
* package version(s) : 1.7.1-3


Steps to reproduce:

* Write a playbook using for example AWS binds
* Run it, it will fail with a SyntaxError exception because of the python2 syntax.
This task depends upon

Closed by  Bartłomiej Piotrowski (Barthalion)
Wednesday, 08 October 2014, 15:41 GMT
Reason for closing:  Not a bug
Comment by Doug Newgard (Scimmia) - Tuesday, 30 September 2014, 13:58 GMT
This is a configuration problem and has been addressed previously.  FS#40492 ,  FS#39153 , and in the upstream FAQ: http://docs.ansible.com/faq.html#how-do-i-handle-python-pathing-not-having-a-python-2-x-in-usr-bin-python-on-a-remote-machine

But we have a new maintainer now, maybe he want to do something here.
Comment by Jonathan Raffre (NekoLover) - Tuesday, 30 September 2014, 14:05 GMT
Thanks for the workaround in the FAQ, did not see it.

I thought I should report this as, in the PKGBUILD, a find/grep is done on the .py scripts but not on those mentioned. Seeing the FAQ, it may be justified not to replace on those specifics scripts, Ansible seems to do it itself.

Loading...