frustrated

109 views
Skip to first unread message

David Marti

unread,
Feb 28, 2014, 3:33:44 PM2/28/14
to ansible...@googlegroups.com
Can anybody explain what this error means and why i can't run anything in ansible:

mb-dmarti:tasks dmarti$ ansible -i sudo_hosts sudo_site.yml --list-hosts
Traceback (most recent call last):
  File "/opt/ansible/ansible/bin/ansible", line 224, in <module>
    (options, args) = cli.parse()
  File "/opt/ansible/ansible/bin/ansible", line 73, in parse
    if (options.su or options.su_user or options.ask_su_pass) and \
AttributeError: Values instance has no attribute 'su'

James Tanner

unread,
Mar 3, 2014, 8:59:54 AM3/3/14
to ansible...@googlegroups.com
> --
> You received this message because you are subscribed to the Google
> Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, 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/56e62a40-2be2-446f-9853-08bf141146aa%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

How did you install ansible and what version are you using?

Jürgen Haas

unread,
Mar 3, 2014, 9:11:57 AM3/3/14
to ansible...@googlegroups.com
I came across something similar in version 1.5 and found the following in /usr/local/bin/ansible:
```
        if options.su_user or options.ask_su_pass:
            options.su = True
```

As the default for su_user is roolt, the above is always valid and options.su gets always set to True. Even if I do not want to use su. Maybe that's the explanation for the problem described above?
Reply all
Reply to author
Forward
0 new messages