Aha, I already did it.
with_items was wrong way to pass it as variable
user: "{{ sudoUser }}"
is right way.пятница, 24 апреля 2015 г., 17:06:49 UTC+2 пользователь Brian Coca написал: > > you can set the group_var ansible_sudo_user (ansbile_become_user > starting at 1.9) and you won't have to manually add it every time. > > On Fri, Apr 24, 2015 at 11:01 AM, Serega Sheypak > <[email protected] <javascript:>> wrote: > > Problem solved. > > > > -- > > 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/b6b5d8d9-c7e8-4a39-9fec-5d93660866ca%40googlegroups.com. > > > > > > For more options, visit https://groups.google.com/d/optout. > > > > -- > 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/45deda1f-4364-4d70-aa5e-9407eed5b1bc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
