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#40159 - [ansible] "has no attribute 'su'" error and wrong version number

Attached to Project: Community Packages
Opened by Christian Ouwehand (palaga) - Wednesday, 30 April 2014, 17:04 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 30 April 2014, 22:41 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture i686
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Today I installed ansible through the pacman. When I ran ansible-playbook it gave me the following error:

Traceback (most recent call last):
File "/usr/bin/ansible-playbook", line 307, in <module>
sys.exit(main(sys.argv[1:]))
File "/usr/bin/ansible-playbook", line 89, in main
if (options.su or options.su_user or options.ask_su_pass) and \
AttributeError: Values instance has no attribute 'su'

I googled the error and found this thread: https://groups.google.com/forum/#!topic/Ansible-project/hEWbNieplJw
This should help with solving this issue. I'm currently using ansible on a remote host using their git repository, on branch release1.5.5. That works like a charm for me.

After looking up the version of ansible for this bug report, I found an other error. The "ansible --version" report that it is 1.4.5, while pacman reports 1.5.5-1. On my remote host, "ansible --version" reports: ansible 1.5.5 (release1.5.5 7b319d8606) last updated 2014/04/29 12:40:01 (GMT +200).

Additional info:
* package version: 1.5.5-1 (according to pacman)


Steps to reproduce:
touch site.yml
ansible-playbook site.yml
ansible --version
This task depends upon

Closed by  Doug Newgard (Scimmia)
Wednesday, 30 April 2014, 22:41 GMT
Reason for closing:  None
Additional comments about closing:  Closed upon user request
Comment by Bartłomiej Piotrowski (Barthalion) - Wednesday, 30 April 2014, 20:02 GMT
% pacman -Q ansible
ansible 1.5.5-1

% ansible --version
ansible 1.5.5

% touch site.yml
% ansible-playbook site.yml
ERROR: Unable to find an inventory file, specify one with -i ?
Comment by Christian Ouwehand (palaga) - Wednesday, 30 April 2014, 20:34 GMT
Hmm, seems to be a local problem. Tried via pacman on a different host and it works there. Should have tried that first. Sorry to bother you. You can close this issue.

Loading...