Use “become”. > On Mar 16, 2021, at 14:54, reredok <[email protected]> wrote: > > Hello all, > > one thing is not clear to me about ansible. On all my Linux VM the root ssh > access, for security reasons, is blocked. So the ad-hoc, playbook access only > works via a non-administrative user. But then, for example, to install > something on the Linux VM, how do you change the user to root? I don't want > to work with ssh and public keys in my small environment and the root ssh > access should remain closed. > Thanks for any feedback > > reredok > > -- > 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] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/869e69b8-67b2-475d-b06a-10f287d54de2n%40googlegroups.com > > <https://groups.google.com/d/msgid/ansible-project/869e69b8-67b2-475d-b06a-10f287d54de2n%40googlegroups.com?utm_medium=email&utm_source=footer>.
-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/33BF877F-88A3-48B1-ABD4-67A701B2AA38%40gmail.com.
