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?
Am Montag, 3. März 2014 14:59:54 UTC+1 schrieb James Tanner:
>
> On 02/28/2014 03:33 PM, David Marti wrote:
> > 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'
> > --
> > 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 [email protected] <javascript:>.
> > To post to this group, send email to
> > [email protected]<javascript:>.
>
> > 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?
>
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/ccf709c8-555b-4e15-aa4f-5bafe893d51e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.