Hi, Brian! Thank you for your answer!
In this case, i got "FAILED! => {"failed": true, "msg": "ERROR! 'adm_users' 
is undefined"}". I declare my vars in 
/etc/ansible/roles/main/variables/main.yml , maybe i must declare variables 
somewhere else?


вторник, 19 января 2016 г., 6:27:29 UTC+5 пользователь Brian Coca написал:
>
> Many things in just one task. 
>
> first debug only takes 1 msg= or 1 var= argument, so instead of: 
>
>   debug: msg={{item.user}} msg={{item.comment}} msg={{item.uid}} 
> msg={{item.password}} 
>
> should be : 
>   debug: var=item 
>
> or: 
>   debug: msg="{{item.user}}, {{item,comment}}, {{item.uid}} ..." 
> or: 
>   debug: msg="{{[item,user, item.comment, item.uid,...]|join(',')}}" 
>
> Also "$vars" were removed a long time ago, it needs to not be: 
>   with_items: 
>     - $adm_users 
> but: 
>   with_items: "{{adm_users}}" 
>
>
>
> -- 
> 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/3f218f3e-ac52-4b43-a351-88d27ce7128d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to