Hi all,
I am trying to deploy kubernetes using ansible playbooks. In this, I have quite a few doubts and problems. Can anyone please help me understand the following concepts or doubts?
- When to use/not use remote_user and what is the purpose of this?
- When trying to use sudo equivalent ‘become’ in ansible playbook, do we need to use become_user with its default user ‘root’ or the normal sudoer user? Why not use the normal user with sudo privileges as become_user?
- When we use become, everything we install and/or create directory and files tend to be under root directory. But when we use sudo in the command line, these files and directory are local to the sudoer user.
3.1 What is the correct way to use this? In my scenario, kubernetes generated files and directories are under /root/ directory as I used ‘become’.
Can anyone please shed some light on these things and also point to the best practices?
Thank you and kind regards,
Indirajith.