"user" is the name of a module ! (since 2.10 it is now ansible.builtin.user but 
for now there's some backward compatibility) 
You can alternate part of your playbook with some being root or another user 
and some with the remote_user. So these different tag are needed, but you can 
factorize them on the play level or put them in the config file if you want 

⁣Télécharger BlueMail pour Android ​

Le 2 mars 2021 à 01:25, à 01:25, Istvan Kis <kistvan.o...@gmail.com> a écrit:
>I am just starting to learn Ansible as I need it for my current job.
>I am kind of disappointed.
>Why can't: 
>
>*become: yesbecome_user: root*
>Just be:
>*user: root*
>Can you become anything else other than a user?
>
>-- 
>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-project+unsubscr...@googlegroups.com.
>To view this discussion on the web visit
>https://groups.google.com/d/msgid/ansible-project/90c7917a-0804-4332-8b92-fd76a296257en%40googlegroups.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-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2b32bd86-f8b4-4106-86c3-7b541ca92f3d%40lenhof.eu.org.

Reply via email to