Am I missing something or Ansible is uselessly verbose?

I am just starting to learn Ansible as I need it for my current job.
I am kind of disappointed.
Why can’t:
become: yes
become_user: root

Just be:
user: root

Can you become anything else other than a user?

“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

Hello,

“become: yes” means you need to become a different user than the user used to connect. By default “root” as is normally used to elevate privileges.

become_user: postgres” if you need a different user, other than connecting user or root.

it is 'useless' for those not using certain features, but mandatory to
support them.

Also you have the 'user' module and user(deprecated)/remote_user
keywords (login user) so become_user is required for disambiguation,
but you can drop `become_user: root` since that is the default.