Hi,
su and sudo are two ways to become another user. So both method are
available in ansible. Very often indeed in public cloud, this is the
sudo way which is used during the provisionning of the server and
assigning ssh key
"man su" and "man sudo" should help you to understand differences.
Resolved by changing *su* to *sudo* in *become_method*, i.e. changing
become_method:su to become_method: su*do**. *The docs mention *su* however.
Is this a bug in Ansible itself where it say in the error message that *su*
is not acceptable or are *su* and *sudo* meant to do different things?
On