My fault!
This one works

- hosts: all
  user: "{{ sudoUser }}"
  sudo: True
  roles:
    - common

I have different default passwordless sudo for AWS instance and Vagrant 
machine. So I want to pass it's name from outside.


пятница, 24 апреля 2015 г., 15:53:07 UTC+2 пользователь Brian Coca написал:
>
> with_items is for tasks, not for plays, not sure what you are trying 
> to do there with sudoUser. 
>
>
>
> -- 
> Brian Coca 
>

-- 
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/481a0faf-0277-44bc-b427-5a51efb79536%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to